This code is from a No Redirect Bookmarklet used with Firefox.The code works great as a bookmarklet but fails when used in a button code like this:loadURI("Bookmarklet Code Here");When I evaluate it using JavaScript Command I getan error popup window stating "SyntaxError: missing variable name"I assume it is caused by this part:vark,x,t,i,j,p;How can I eliminate the error?No Redirect Bookmarklet Code:
i am trying to get jsonp to work with Cluetip for cross-browser ajax requests and am running into the following error: "Uncaught SyntaxError: Unexpected token <",
Basically does anybody know what the answer is for when you visit a web site (more so with IE 6 and WinXP) and some of the pics (gifs/jpgs) don't appear.
Instead the white box with the red cross takes it's place until you right-click on the pic and select Show Pictures.
Once you do this the pictures show up for the remainder of the session.
It appears to be pics that are repeated such as thumbnails for nav link lists and I just can't seem to fix it with HTML code. It seems to be a browser issue, as the pics intermittantly load or don't load (until you click Show Pictures from the floating menu).
I have a very simple javascript codes with a following lines inside: ............................ var str = ""; .. . . . . . . . . . str = String(new Date()); // #1 str += fobj.elements[i].name + "=" + fobj.elements[i].value + "&"; // #2 str += fobj.elements[i].name + "=" + encodeURIComponent(fobj.elements[i].value) + "&"; // #3 str = 'Test' // #4 ............................
1) If I commented out the line #3 everything works OK. 2) If I leave this line in my script, lines #1 and #2 have no problems, but the line #3 failed (without any trace) and I never reach the line #4.
It seems the global function "encodeURIComponent()" is missing (by the way, the global functions "String()" and "Date()" are not missing and they returns a correct value). How I can fix this problem?
I created the simplest embed QT movie page, and for starters, want to get the version. An HREF event works fine, but otherwise I get a fabulous "Unspecified error". I'm using MSIE6 WinXP SP2.
The script below allows me to link to a file and as the user clicks to download, the 'File Download' windows appears as normal, and the user can download...
The original page is then redirected to a new page.. This works, but it also opens a blank page..
How can this be chaged to stop the blank page from opening... ?
i tried coding a different login page but it didnt work and it was very messy so i am making another one the problem is when the incorrect user or password is inserted it is supposed to display an error message saying "wrong username and password" when instead it just gives me a blank page any ideas on why my error message wont show?? my code is
I have added an image rotator to my website using Java Script.The box for the rotator shows up on the published site but not the pictures.When I click on the box it links to the pictures I have added, and I know they are rotating because it changes every time I click on it.Also, the code does not seem to be showing up when I view the source of the page.
I am new to java, I am having trouble on outputting the num2 on the screen. I could not see any errors indicated the problem on the program(Eclipse). However, the program just miss scan the num2. I was trying to sort the number and output them from smallest to largest.
I was just told that one of the four navigation buttons on our site (www dot improper dot com) is not showing up for people here at my office (who are all on Windows XP + Firefox 3.07).
I've ammended my code now so that I'm using objects, constructors and prototypes.
If I use the standard constructor.prototype.functionname = (){......} type of setup it works okay.
However I'm now experimenting with overwriting the prototype with a literal. As in the code below. i.e. constructor.prototype = {functionname : function() .......
Doing it this way my first new object instance fails. The subsequent new objects are fine.
I ran a check on the properties of the 1st object with '!hasOwnProperty and name in' and the result is that the prototype (or pointer to a prototype) is missing.
So the first new object of FontTrans (oH) has
Code: 1 property is Heading . . 9 property is Delay
Don Gosselin's JavaScript Fourth Edition is a tiresome read and I have been unable to put together the necessary tools that Don teaches to find the answers that I want to make the following function work.
function calculate() var shipping = 0; var total = 0; { if (document.forms[0].hand_tool.value != document.forms[0].hand_tool.value == true) (document.forms[0]item1.value == 20); {
I have tried this using both frames and window.open(). In either case, if the new content comes from a different site than the original (or comes from a site and original is a local file) the document object is inaccessible. The new window object seems to have no document and no all[] or just about anything else useful. If the new content came from the same site (or local computer) as the original, everything seems to be where it belongs. I have looked all over and can find no references to this problem. Is this some security issue that everybody but me knows about?
I am seeing this on IE 6.0.2800.1106. The files are created in notepad so there should be no surprises there.
I have an html page with a div element within a form for dynamically creating textfields.
The problem is when I click a link on the page, or the submit button, then click the back button, the new textfields in the div element are not there anymore.
Does anyone know how this scenario is usually handled?
I'm attempting to submit a form via a function which dynamically creates a hidden input:
function submitLocation(theForm) { var e = document.createElement('input'); e.setAttribute('type', 'hidden'); e.setAttribute('name', 'location'); e.setAttribute('value', Ƈ'); var f = document.getElementById(theForm); f.appendChild(e); document.forms[theForm].submit(); }
The function is called from an anchor's onclick event:
im using .load to get a part of a html site into my div.Problem:For exapmle i have some markup like:<strong>some text</strong>When i load this content the tag is closing befor of the strongtag.Looks like this:
I'm having a problem with Superfish on my locahost site. I'm at a loss as to what the problem might be located, what is the solution so...I'm hoping someone here might know how to fix this.
I was looking for a way to reduce the number of SF modules on my Joomla 1.5 site by modifying my module tag to look like this: <jdoc:include type="modules" name="sf-menu" style="html"?php echo $pageclass ? $pageclass : 'default'; ?>" > That last part works well in template div tags but now I know its deadly if included in a module positon.
When I looked into view source, it was blank. I've clawed back somewhat but the menu ul still does not show up in view source. Since then I've deleted SF modules, re-installed a backup version of Joomla and put in a new SF module. The site looks OK except no menu appears, nothing in view source that isn't already in Index.php. Also my backup did not load articles, they were all "undefined" which is a minor hassle since I have these in utf-8 text files.
Is this a js or php issue? do I need a Joomla re-install or a full Joomla / server re-install? I really don't know.
I have a jq function that uses the $.post and have never really had an issue until a couple of days ago. I have looked over the code many times and can't figure or the issue. I think that it may be something right in front of me but for some reason or another I can't figure it out.The error "Missing } after property list" is given in FF and IE also gives an error, both on page load. Here is the function:
function editForm(data) { var company=$("#company" + data).val(); if (company=='') {
After some reading from this tutorial, I have the following partly working code:
[Code]...
When the event: "found_match happens", it should show the mouse coordinatesin the div: "status2" , but it doesn't.ObviouslybecauseI am missing the .mousover(). But where to put this in my code to make it work so that it wil show the mousecoordinates on this event?