I'm trying to make a dynamic form, where I want to add/remove a set of controls (say for Name,Email etc).
Just started but IE behaves differently that FF in the beginning itself. "Add more" works but "Remove this" doesn't. Also the CSS for dynamically created elements doesn't work. Here is my code so far. Code:
What I'd to know is how to refer to characters from different charsets like Herbrew or Japanese characters simultaneously, as well as English and all others within the same script block.
E.g,
[code] if ( xx[K]=="C" ) { N = 1;} if ( xx[K]=="荐" ) { N = 2;} [code]
note that I'm using notepad which would never accept the Chinese character shown and that code only represents my intention. I'd gladly use a html value like .
Yesterday I discovered a problem on one of my sites: escape function was encoding the same string Sal in two different ways:Sal%F2Sal%C3%B2 This was happening on Firefox 2.0.0.3. In Opera 9.20 was encoded ok every time.
So, in Firefox was a russian roulette . Sometimes was encoding the string like I wanted to, sometimes not. As a solution I use encodeURIComponent(), but the behavior of escape() seems strange to me.
i am invoking window.opener.location.reload function from a pop up window to reload the parent page. But this seems to behave randomly. Sometimes the reload would preserve form data eg. the state of the drop down lists. On some other occasions, it would reset all the drop down lists and form data. Does window.location.reload resend form data to the server?
I think my last question was not clear, so people gave me the reverse answer.
I want to put a string in an html file, and human eyes or robots will not be able to read it.
For example I want to turn this one <a href="#" onclick="this.href='http://www.google.com'">click here</a> into <a href="#" onclick="this.href=' encoded of h encoded of t encoded of t encoded of p encoded of : encoded of : encoded of / '">click here</a>
I prefer bit OR, the ^ opertaion, but ASCII is fine with me, like %40%xx%xx
This plus disable right click will make search engines and view source difficult but still possible to know where it is linked too,
Page where I'm redirecting user after 5 seconds to another page. This part of the script seems to work fine and redirects to the URL I want. However, the issue comes when I try and add parameters onto the URL. The redirect will stop working. I believe it's a formatting issue, as I've used the code in a different application. [code]...
I am creating web page. I am in the early stages of building. But I have found that my onChange function behaves different on Firefox and IE.It work as it suppose to on Firefox but not on IE. On IE, onChange is not triggered when you select the an option. But triggers when you click the mouse the second time.
I'm ok with the basics of html and css, but and fairly new to it, so have been stumped by this latest problem. I built a site [URL] about a year ago, and am fairly sure that it worked perfectly in all browsers at the time. However, I've just checked it and have noticed that the last option on the navigation bar at the top ('noticeboard') seems to have disappeared in IE. It's still displaying perfectly in Firefox and Chrome however.
The html for that section is: <div style="top: 0px; left: 0px" id="header"> <div style="text-align: center; top: 34px; right: 75px" id="menu"> <ul id="navigation"> <li class="active"><a href="index.htm"><span>HOME</span></a></li> <li><a href="callington_LFC_fixtures.htm"><span>FIXTURES</span></a></li> <li><a href="callington_LFC_reports.htm"><span>REPORTS</span></a></li> <li><a href="callington_LFC_photos.htm"><span>PHOTOS</span></a></li> <li><a href="callington_LFC_players.htm"><span>PLAYERS</span></a></li> <li><a href="callington_LFC_contact.htm"><span>CONTACT</span></a></li> <li><a href="callington_LFC_noticeboard.htm"><span>NOTICE BOARD</span></a></li> </ul></div></div>
If you visit the site in different browsers you'll see what I mean. This time it's working fine in IE, but not in Firefox or Chrome (I feel like tearing my hair out!). The problem is with the very bottom section on the page. The alignment is all out. The html reads: <div><img alt="" src="images/right_bottom.png" /></div></div><br clear="all" /> <center><img style="width: 552px" alt="" vspace="3" width="552" src="images/hr.gif" /></center></div></div> <div id="footer"><a href="callington_LFC_contact.htm">Contact</a>|<a href="index.htm">Home</a>| <a href="callington_LFC_links.htm">Links</a>|<a href="callington_LFC_map.htm">Map</a>|<a href="callington_LFC_sitemap.htm">Sitemap</a> </div></div> <div id="bottom"><br /> .....
I came across an Intranet site at my office which has lots of check boxes in single line and they are all check'd by default. And as expected, there is no option to uncheck or check all.So, I decided to write a small JS which will loop through all elements in a form and check the element type. If it's check box then it will simply uncheck it (no complex coding).
I have a piece of JavaScript code that uses the location.Reload method to reload a form that has a textbox and radio control. Both are supposed to contain the same random number. When a button is Clicked, the location.Reload method is called and everything updates as expected. However, the BROWSER Refresh button only repopulates the dynamically generated radio button. The text box retains the old value.
problem I'm having is that the parent url has a # sign in it, like: http://localhost/mysite/me.html#01
i need the #01 to stay in the url after the refresh, anyway to do this? i tried using escape(window.opener.location.href) but that didn't work, as it escaped everything including the :// in http://
i also tried: window.opener.location.href(window.opener.location .protocol + "//" + window.opener.location.hostname + window.opener.location.pathname);
problem with that was i lost the #01 in the url, pathname didn't include it.
The xml tree is the responseXML part of an XmlHttpRequest and is stored in a the javascript object xmldoc. While trying to test the node type of the children of the "results"-Element I got different results with IE and Mozilla: Code:
I used a menu making program to create a cool new menu for my website, but I can't get it to work properly.The menu code uses this argument: "java script:[code]in my above code there isn't really a space between 'java' and 'script'.
I have this JSON file that does the encoding from the states database.I want to extract it out using jquery and populate the select dropdown box. the json file is being encoded in this way:
[ {"State":{"name":"AUSTRALIA CAPITAL TERRITORY"}}, {"State":{"name":"NEW SOUTH WALES"}},
I could have sworn I saw a command that allows Javascripts to use the browser's native base64 encode/decode but I must be Googling for the wrong terms. Do most browsers expose these converters to javascripts's there a way to use these converters?
I am having 2 datepickers on the same page. One is name datePicker1 and the other datePicker2. I am actually having the code
$ ( ".ui-state-active" ).
[Code].....
I want to have the above code to work only for datePicker1 and not datePicker2. Actually, the problem is that the code is working on both datepickers. How can I make it work for only datePicker1?
How would I modify this form to encode *all* the characters in the 'source' textarea to the '%xx' format & place result code into the 'output' textarea?
I want to encode and decode a javascript file in which many javascript function running. i fount lot of function decode and encode but not worrkking well .
How do you folks handle <select> lists with no default option selected? I have mocked up a simple sample but in reality I may have a dozen different categories. (Link:Do you disable all other hidden <select> elements so that their values are not sent in a POST request?
I am working on creating a JSON feed that is later being used with Arshaw's fullCalendar, which I am integrating into Expression Engine CMS. Currently I am doing the following, and all works well.
What I am curious about is I am trying to create another array set that is pulling new information from a different source. Is it possible to use the json_encode(); method to encode two separate variables?If not, is there a way I can create the event variable and store both the information you see in the while loop with information that I would store into a new while loop? I'm a little stumped
I have acollection of local variables populated via Flash movies and scripts, and now I need to submit an ajax post (can also be get, but prefer post). I have tried:
The problem with this is the encoding of the localParam1 and localParam2 sometimes breaks the normal & delimeters. An even more problem is I sometimes haveupwards of 25+ local variables that I need to submit. These inline +s makes it feel, and look, like one huge hack - not to mention the encoding. One last restriction: I cannot use any jquery plugins due to the company's policy. So, I'm looking for something small and light as a solution - not a plug-in. Isn't there an easy way to do this? ONe thought I had was to create a new <form> on the page, and insert the variables as new <input /> fields - and then finally submit the entire form. Again, a big hack + css
I have page here Untitled Document where when I select the drop down list value it will reassign the drag and drop function but it behave differently from this link Untitled Document where it drag and drop only on the picture and the drag image does not disappear?