|
When I am trying to use sendmessage to load property page to FireFox browser using the message below ( ,which is successful in IE. )
gives error. Any Alernative for mozilla FireFox.
::SendMessage(m_hWnd, PSM_INSERTPAGE, 0, (LPARAM)&m_EditPage.m_psp);
|| ART OF LIVING ||
|
|
|
|
|
Taking the **** a tad here, but here goes.
We (or I) have developed a thin client front end for editing glorified batch files. There can be anything from 10 - 1000 lines in the file. I am marking up a HTML table server side (various ajaxy type stuff) and serving it to the user, with drop downs, edit boxes etc to control data for each batch.
One thing I am struggling with is giving them the option to change the order of the batch. My first attempt was two imagebuttons next to the sequence number which allowed them to move a line up or down, effectively swapping two lines. Good for small moves, but useless if they want to move a line to the top of the file. I then had a drop down, populated via an ajax called which moved the element 'after' another element picked from the list. But how to generically handle moving to top. Same as 'move before' element - how to get element to the bottom. Also, as the Sequence number column is numberic, the screen all resizes when I change it to a drop down.
Any ideas on a neat, slick DHTML / Ajaxy interface for arranging the order of a lot of items?
Cheers
Regards
Angel
*********************************************
The sooner you fall behind, the longer you have to catch up.
|
|
|
|
|
My suggestion is to do a "Click to change the order of this line" and after they click on one do a "Click on another line to put the selected line on top", or something along this line.
This will solve your problem of moving a line anywhere (reordering), even with paging if there's any.
"Democracy is two wolves and a sheep voting on what to have for dinner" - Ross
Edbert
Sydney, Australia
|
|
|
|
|
Not an easy solution, but drag-and-drop would be great in this situation. Although I'm not even sure (off the top of my head) if you can scroll the window while dragging, so it may not work at all.
|
|
|
|
|
Hi All,
I want to load a web page in iframe.The problem is that i dont want to scroll through frame.Rather i want to use window default scroll bar.I want that the frame when load sets it height and widht according to web page.
Can anybody helps me????
The other problem which i am facing is that document.body.offsetheight doesnt gets full height of page.Rather it only gets the height of page only in current region I mean in client area.How can i get full height of webpage.
|
|
|
|
|
Dear Friend,
use the following script:
<br />
autofitIframe = function() {<br />
var id = 'contentFrame';<br />
if (!window.opera && !document.mimeType && document.all && document.getElementById) {<br />
parent.document.getElementById(id).style.height=this.document.body.offsetHeight+"px";<br />
}<br />
else if(document.getElementById) {<br />
parent.document.getElementById(id).style.height=this.document.body.scrollHeight+"px";<br />
}<br />
} <br />
window.attachEvent('onload', autofitIframe);<br />
Dont forget to replace the 'contentFrame' with the value of the id attribute of the iframe. If there is no id attribute just give it an id as such id="contentFrame"
Jason Kataropoulos
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
Hi Jason Kataropoulos,
Thanks for ur message.But the problem is still there Can u view my code.It is not getting full lenghth of document in iexplorer 6.0.I wanna to get full height of document without enabling iframe scrolling.I only wanna to use scrolling of parent window.
***************************Regards*****************************
function resize_iframe()
{
document.getElementById("glu").style.height=document.body.offsetHeight+"px";
}
window.onresize=resize_iframe();
|
|
|
|
|
I'm looking to purcahse an intranet application developed in ASP or ASP.NET. I would like to get one recommended rather than selecting any intranet company on GOOGLE. Please CAN SOMEONE HELP.
|
|
|
|
|
Um. What kind of application?
Is it a custom build or are you looking for an 'off the shelf' solution?
Why specifically asp or asp.net?
If you're looking for someone to build you an application, i'm sure you'll find someone here...
|
|
|
|
|
Dear friend,
An intranet is a vague concept. You need to define your requirementsm see what you need your intrane to do. Then, just look around for intranet applications and see wich ine fits your needs.
You need to install an intranet that suits the way your organization works. Dont let youru organization adapt to an intranet application.
Jason Kataropoulos
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
If i call the Web Service from the same server which i hosted,it's working fine.If i try to call the web service from another server i get the following error.
Unable to generate a temporary class (result=1).
error CS2001: Source file 'C:\WINDOWS\TEMP\39_bmero.0.cs' could not be found.
error CS2008: No inputs specified.
Kindly help me....
sathiya
|
|
|
|
|
To me it looks like the web service is trying to find 'C:\WINDOWS\TEMP\39_bmero.0.cs' on the server calling the service, rather than on the host. Not enought detail here to tell why though...
"Half this game is ninety percent mental." - Yogi Berra
If you can read thank a teacher, if you can read in English, thank a Marine.
M y and h don't work so well due to m addiction to caffeine and m in abilit to to set a cup down uprigt.
|
|
|
|
|
my code run fine when i browse in IE browser where the menu it show horizontally. But when i use Mozilla firefox the menu become vertical!! and the menu is mess up... i not sure where goes wrong in my coding actually i got this coding from the infinite menu here r part of it i think it so set the style or the menu go verticall or hozintol:
/*---------------------------------------------
Global Menu Styles
---------------------------------------------*/
//Main Menu
this.main_container_styles = "background-color:transparent; border-style:none; border-color:#6a6a6a; border-width:1px; padding:0px; margin:0px; "
this.main_item_styles = "background-color:transparent; color:#ffffff; text-align:left; font-family:Arial; font-size:12px; font-weight:bold; font-style:normal; text-decoration:underline; border-style:solid; border-width:1px; padding:2px 8px; "
this.main_item_hover_styles = "background-color:#8080ff; text-decoration:underline; "
this.main_item_active_styles = "background-color:#800080; "
//Sub Menu
this.subs_container_styles = "filter:progid:DXImageTransform.Microsoft.Fade(duration=0.3); background-color:#efefef; border-style:solid; border-color:#cccccc; border-width:1px; padding:5px; margin:4px 0px 0px; "
this.subs_item_styles = "color:#555555; text-align:left; font-size:11px; font-weight:normal; text-decoration:none; border-style:none; border-color:#000000; border-width:1px; padding:2px 5px; "
this.subs_item_hover_styles = "color:#000000; text-decoration:underline; "
this.subs_item_active_styles = "background-color:#ffffff; "
|
|
|
|
|
Mozilla Firefox does't support "filter:*" styles.
And you must support all browsers. Try to view page in Opera also.
My english is bad. Please, correct my errors.
Best regards, Alexey.
|
|
|
|
|
anyway to replace the filter design in my code? becuase i cant force visitor to dont use mozila...
|
|
|
|
|
hi, how do i format in regular expression
tin no : xxx-xxx-xxx where x is 0 to 9
im new to regular expression and so far
my expression seems not to be valid
im suppose to use it in a webform with
regular expression validator
thx
|
|
|
|
|
The expression looks something like \d{3}-\d{3}-\d{3} .
You can check out the tutorial[^] to get started.
|
|
|
|
|
this is the code : the aim is almost like an auto complete
when tin no exists in db
it automatically loads the name of establishment in text box
of establishment and make it readonly else allow input.
in add mode i don't have a problem since the tin no textbox
initially has no value but when i am in
edit mode where i retrieved from the db the tin no to
tin no text box. what happens is when i type like another
existing tin no it works but when i use last tin no that was
retrieved from db that's when the error occurs
any ideas?
---------------------------------------------
<form id="form1" method="post" runat="server">
<script type="text/javascript">
var Cbo = new CallBackObject();
Cbo.OnComplete = Cbo_Complete;
Cbo.OnError = Cbo_Error;
function CheckTin(strTin)
{
//var msg = document.getElementById('lblNameOfEstablishmentValue');
//var msgText = document.getElementById('txtEstablishment').value;
if (strTin.length > 0)
{
Cbo.DoCallBack('txtTIN', '');
}
else
{
Cbo.AbortCallBack();
msg.innerHTML = '';
//msgText.value = '';
//document.getElementById('txtEstablishment').value = '';
}
}
function Cbo_Complete(responseText, responseXML)
{
//var msg = document.getElementById('lblNameOfEstablishmentValue');
//var msgText = document.getElementById('txtEstablishment').value;
if( responseText.length == 0)
{
//msg.innerHTML = '';
//msgText.value = '';
document.getElementById('txtEstablishment').value = '';
document.getElementById('txtEstablishment').readonly=true;
}
else
{
//msg.innerHTML = responseText;
//msgText.value = responseText;
document.getElementById('txtEstablishment').value = responseText;
document.getElementById('txtEstablishment').readonly=false;
}
}
function Cbo_Error(status, statusText, responseText)
{
//alert(responseText);
document.getElementById('lblError').innerHTML = responseText;
}
</script>
<table>
<tr>
<td>
Tin:<asp:textbox id="txtTIN" tabIndex="6" runat="server" MaxLength="12" onkeyup="CheckTin(this.value);" OnTextChanged="txtTIN_TextChanged"></asp:textbox>
</td>
</tr>
<tr>
<td>
Establisment:<asp:textbox id="txtEstablishment" tabIndex="8" runat="server" Width="100%" MaxLength="100"></asp:textbox>
</td>
</tr>
</table>
</form>
-------------------------------
thanks
|
|
|
|
|
This kind of error occurs when an input field has text in it that could potentially be code. A hacker could write html and javascript into a textbox and use it to compromise a web page. By default, ASP.Net will check input fields for this kind of danger and will report an error when it sees anything like this. You can turn off this check by using the validateRequest attribute on the Page directive.
Logifusion[^]
|
|
|
|
|
ic, thx
by the way, how do i turn off
i know i can put validateRequest = false
but where is Page directive?
thx again
|
|
|
|
|
finally found it
it goes to the html part, not in code behind
<%@ Page Language="VB" ValidateRequest="False"%>
thx
|
|
|
|
|
is there another way we could do without turning it off?
coz if i turn if off, then i would need to validate all textbox fields for
script tags?
i tested it with validateRequest=false
the textbox return html codes of the whole postback instead
thx
-- modified at 13:37 Tuesday 18th July, 2006
|
|
|
|
|
does this mean that it only works on label control
i tested it on label and it works fine
but in textbox control this error occurs
what others ways so i can still use the textbox?
|
|
|
|
|
You have to be more specific. What did you try on the label control and what did you try on the textbox control? Is the error still a validate request error even though you have it in the page directive?
Logifusion[^]
|
|
|
|
|
since i am using ajax
the aim is almost like an auto complete (typing)
when tin no exists in db
it automatically loads the name of establishment in text box
of establishment and make it readonly else allow input
i tested it first using label control for establishment
when i saw that it works i replaced it with textbox
tested this in add mode
in add mode it works, but in edit mode where i
populate the value of tin no textbox the error occurs
when i use the value that was populated in page load event
now when validateRequest=false the textbox of establishment the error
does not occur except that the textbox of establishment return
the html codes of the postback by ajax
when i included the label control of establishment and tested it
on edit mode the same thing happens with label control of establishment
except that it does not return, it now has javascript error so
textbox control of establishment does not load too
-- modified at 15:18 Tuesday 18th July, 2006
|
|
|
|