|
You could use the XmlHttpRequest[^] API to make a HTTP request for a URL in your client-side code. Checking the response and/or status will tell you whether the resource could be located.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
That is an awesome idea. Thanks for getting back to me. I will post the results.
Thanks again
|
|
|
|
|
Happy to help
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
|
I am trying to pass a javascript variable to part of my ruby ajax request. I have no idea on how to do this...someone please help:
example:
var myIndex;
function setPage(index)
{
myIndex = index;
new Ajax.Request('/myController/save_page_index?index= ** value of myIndex** ',....
}
I'm not sure if this is even close. Please help....thanks!!!!
|
|
|
|
|
You can search about how to use Ajax in Rails. Ruby on rails AJAX[^]
If you got the specific error then you come back here and ask it again..
|
|
|
|
|
Hi there,
I have one annoying issue - when I export GridView to HTML
I' ve got "Â" character instead of blank spaces.
The same issue was resolved for exporting to CSV file by
replacing " " with "".
But it does not work for HTML.
Also, I've been trying to replace
" " with "a0" and use COALEASE function on SQL side
to replace NULLs with "" - nothing helps.
Please advise,
thanks
Vladzeem
|
|
|
|
|
Are you using the non-english version of OS or something(eg. VS, SQL or etc)?? it might cause this issue.. I think you should set the current culture to English before exporting the excel.
|
|
|
|
|
Hello togetherm
I have a self written AJAX-Combobox and I have a tuning problem inside javascript.
I get many records from server and will fill a client side combobox (select element) with all records like this:
for (var i = 0; i < length; i++) {
oSel.options[i] = new Option (arrT[i], arrV[i], false, false);
}
This takes 30 seconds for 3600 array elements (-> 3600 options will be created).
Have anybody an idea, how I can create the options very very faster?
Thank you very much
Stephan
\\\| \\ - -
( @ @ )
+---------------oOOo-(_)-oOOo-----------------+
| Stephan Pilz stephan.pilz@stephan-pilz.de |
| <a href="http://www.stephan-pilz.de">www.stephan-pilz.de</a> |
| ICQ#: 127823481 |
+-----------------------Oooo------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)
|
|
|
|
|
Just an idea. (not so sure whether it will work with your self-written Ajax-combobox).
What about loading the data on demand? Like Microsoft Live Search result or dzone search result. In your case, it will be in your combobox instead of a page. You have 3600 records in the database, right? firstly, you can load a few records (50 or 100 records) and add them to your combobox. then, when the user scroll down then you can load the more records on demand...
|
|
|
|
|
Yes. But (sorry for my stupid answer) I have no time to implement it. Have only time to make the line inside the loop faster.
Stephan
\\\| \\ - -
( @ @ )
+---------------oOOo-(_)-oOOo-----------------+
| Stephan Pilz stephan.pilz@stephan-pilz.de |
| <a href="http://www.stephan-pilz.de">www.stephan-pilz.de</a> |
| ICQ#: 127823481 |
+-----------------------Oooo------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)
|
|
|
|
|
Stephan Pilz wrote: Have only time to make the line inside the loop faster
Okay. All the best!
|
|
|
|
|
As Michael suggested, your best bet is to find a way of putting fewer items in the list. Not only will that speed up the routine, but you may actually find that your end-user is able to find items in the list more quickly as well...
Otherwise, try building the HTML for the options in-memory and blasting it all out at once by assigning it to oSel.innerHTML . Might be a little faster, depending on the browser in use.
|
|
|
|
|
Shog9 wrote: try building the HTML for the options in-memory and blasting it all out at once by assigning it to oSel.innerHTML. Might be a little faster, depending on the browser in use
Yeah. I think this is good idea too..
|
|
|
|
|
I have a problem in HOVER MENU and ROUNDED CORNER EXTENDER control of ASP.Net AJAX....
I took a label and 3 link buttons in a panel and tuk hover menu extender....set the properties of it like the
Target control id=Label1;
Popup Control id=Panel1;
but i want the panel with rounded corners at the bottom...so i tuk a rounded corner extender control and set its Targetcontrol id = Panel1...
Here comes my problem... the panel1 which is Popup Control id for HOVER MENU is not at all displaying the link buttons that are present in it....
That is the bottom of the panel is rounded but the hover menu functionality is not working at all... ....
Cud u plz help me out of this problem...
|
|
|
|
|
Perhaps asking this ASP.NET question in the ASP.NET forum might get you somewhere...
|
|
|
|
|
Hi Shog...Thanks for the reply...Since this is the AJAX Section i have posted my question over here....
Regards
Abhishek
|
|
|
|
|
The problem is, your question has little or nothing to do with AJAX; ASP.NET AJAX isn't quite the same thing.
|
|
|
|
|
Hi,
I wrote a javascript routine for the onKeydown event to prevent users from typing letters in certain textboxes . However, a user could still PASTE non-numeric content from the clipoard. I also wrote a javascript routine for the onChange event of these textboxes, but it only works if the users sets the focus on another control .
I found that the onChange event does not fire if the user clicks the summit button right after pasting the contents of the clipboard. Is there any way to prevent pasting from the clipboard to these only-number-textboxes?
thanks.
|
|
|
|
|
I don't know - but even if there was I would caution against using it.
1) Pasting can be useful - people can copy/paste their tel / security number / whatever in without fear of typos.
2) "Make a better system, and a better fool will come along." This si a well known truism - ie you're wasting your time.
3) You may well piss users off - me, for example. I *hate* it when sites (try to) block right-click functions for example. Makes me all the more determined to get round it, or go elsewhere if I can.
4) People can always disable Javascript - so you will have to code for the possibility of incorrect input anyway - ie you're wasting your time.
You will do better to validate their input both BEFORE submitting the page (for the user's benefit) and AFTER (for yours) and present the user with a notice if appropriate.
Fred
|
|
|
|
|
Thank you Fred for your arguments. They do make sense. Rarely things are just as we want them to be.
I had forgoten that javascripts can be disabled
Have a great weekend!
Alex.
|
|
|
|
|
IE has an onpaste event that you could use to strip non-numeric chars from the text after a paste. Mozilla/Firefox has oninput that fires immediately when the text changes for any reason (typing, pasting, drag'n'drop...). Between those two events, you should be able to handle things...
|
|
|
|
|
Hi Shog,
Thank you for your hints, I believe I'll be able to do the trick with them.
Have a great weekend!
Alex.
|
|
|
|
|
Is it possible to apply xsd to each webmethod in asp.net. If yes then how ?
Please help.
Regards,
Sameer J Narkar
|
|
|
|
|
Can you elaborate slightly on what you mean? How do you apply an xsd to a webmethod?
|
|
|
|