any way of making encodeURIComponent in javascript ignore certin characters?
Hi is there any way i can make the encodeURIComponent method ignore certain characters for example if i don't want it to encode the £ sign. ? thank you ...
Hi is there any way i can make the encodeURIComponent method ignore certain characters for example if i don't want it to encode the £ sign. ? thank you ...
I am currently working with an API, currently the sequence of events is I send an XML request to the api provider and it responds with a response in the format of some XML also, I was hoping there would be a way for me to detect when this reponse is sent back so I can show the user a loading message while the response is sent. Ideally I ...
Hi So I've got an XHTML page with a script - not inline > <script type="text/javascript" > src="../global/js/scripts.js"></script> and an embedded (I tried embed and object, same behavior) SVG document with a onload="CheckIfLoaded(evt)" attribute. The problem is firefox doesn't call the CheckIfLoaded() function in scripts.js. Firebu...
if I have 4 variables startTime; endTime; startMerid; endMerid; startMarid and endMarid are either going to be 'AM' or 'PM'. but startTime and endTime are going to be strings like 'dd:dd' so it may be start:12:30 PM and end:5:30 PM How can I validate that the end time is not before the start time? Thanks!! ...
I'm using a shadowbox which generates an iframe to display product details on a page. Because the details page can be pretty long, the client would like a "More" button that scrolls the page down (apparently the scrollbar on the right of the iframe isn't enough). Here's the code that I've tried in order to get the iframe to scroll: $(d...
Hey Guys I am using one jquery date picker, with using picker i am getting date in like this format Friday, May 21, 2010 Now i want to add one day in this date so i think, i can only do if i change the date in exact format like 21/5/2010 I want to only convert that bcz i want to add one day to the particular date. So what do u suggest ...
A thing that I noticed about most JavaScript frameworks is that the most common way to find/access the DOM elements is to use CSS selectors. However this usually requires the framework to include a CSS selector parser, because they need to support selectors, that the browser natively doesn't, foremost the frameworks own proprietary ext...
I have a question for a Javascript regex ninja: How could I simplify my variable creation from a string using regex grouping? I currently have it working without using any grouping, but I would love to see a better way! The string is: var url = 'resources/css/main.css?detect=#information{width:300px;}'; The code that works is: var s...
I want to change a string which start 'a' and end 'n'. For example: "action" I want to replace 'ctio' and all starting 'a' and finishing 'n' with ''. How can do it? ...
The HTML5 spec mentions an UndoManager that can be used to query the previous state of a document that's been edited by a user ( http://www.whatwg.org/specs/web-apps/current-work/#undomanager ). Do any browsers support this? Is there any hope of browsers ever supporting it? ...
Some websites have forms with input type="text". And inside these textboxes there is a blurred text, which says for example: "Enter your name here". And then onClick or OnFocus or whatever, the text dissappears and you can type into the textbox. Like the title of posting a question here at stackoverflow, same thing. How is this done ea...
I am facing a strange javascript object expected error in IE8? On IE Developer tool the error shown as Object expected products.aspx?productid=127, line 234066871 character 5 There is only around 350 lines in the rendered html source. How to find the correct source of error. Edit: There are following includes in the file. <script t...
I have a select list: <select id="sel"> <option>text1</option> <option>text2</option> <option>text3</option> <option>text4</option> </select> I want to delete all items, without for loop. I tried: document.getElementById('sel').length = 0; But this doesn't work in some browsers. Any ideas? Thanks ...
I have a div tag with runat="server". with another div tag which is added dynamically. eg: <div id="div1" runat="server"> <div></div>--this div tag is addded dynamically</div> what i observed is that i am not able to remove the div tag if i add it dynamically... closing div tag(</div>) is not rendering. if its a static div i am a...
Possible Duplicate: How to make in Javascript full screen windows (stretching all over the screen) How do I emulate pressing F-11 in a browser using Javascript? (I assume it will be different in Chrome,IE and FF?) ...
Hi, I have some xml data and I am trying to keyword search data. For example, if I search "some" for the following data it returns me the <id> and <title>. <resource> <id>101</id> <title>Test Environment</title> <description><b>Some</b> description. </description> <type>classroom</type> </resource> <resource> <id>102</id> ...
What i try to accomplish is to register a global handler to catch all uncaught exceptions. Searching the web i only managed to find people pointing out window.onerror but this doesn't do the trick for me. Apparently window.onerror only gets called upon errors and not upon exceptions. Assume the following code: function windowErro...
I am developing a bookmarklet that requires a specific version of jQuery be loaded on the page. When I have to dynamically insert a jQuery script tag to meet the requirments of the bookmarklet I want to wait for the onload or onreadystatechange event on the script tag before executing any function that requires jQuery. For some reason t...
Folks I am trying to build a sitemap (we need one badly) for a huge multi-page web app. Technically its not much more than a collection of php/MySQL web forms that use javascript instead of traditional linkage to access the many pages. <td width="100" align="center" ONMOUSEOVER="this.className='bgover'" ONMOUSEOUT="this.className='bgou...
I need to be able to iterate through all the form fields within a specified DIV tag. Basically, any given DIV tag can have multiple form fields (which is easy enough to parse through), but it can also any number of tables or even additional DIV tags (adding additional levels of hierarchical layering). I've written a basic function that...