Prototype Codes Works In Firefox, But Not In Any Other Browser?
Apr 16, 2010
I'm using a fork of osC for an ecommerce system. It has an integrated smarty template. In the admin section, when adding products there's a section with three tabs: Main Image, Extra Images, and Media
This section acts like AJAX, but I'm not sure if it is. The media pulls actions from two .js files: prototype.js and media.js So, I'm guessing it's Prototype? The problem is adding media works fine in firefox, but only shows a "Please Wait..." when used in IE, Google Chrome, and Safari The odd thing is when it's loading in Firefox, it says "Initializing.." (Instead of Please Wait..) then loads the media functions allowing me to add sound to my products. If it's php I can do fine, but I don't know much about JS.
The reason that it works well in firefox, makes me suspect the code is right, but missing something.
In my quest towards becoming a guru in Web Development led me to start learning Scripting few weeks ago and i started with Javascript there is this video tutorial that i have on my drive which was putting me through, the going was good but i got stuck when some of the examples demonstrated in there did not perform the way it was performing on the Instructor's system, yeah he said it in the tutorials that some of the Jscript codes may not function well in some browsers especially the older browser,he uses Firefox and Internet Explorer on his system while i use IE and Google Chrome on mine.
Well the Tutorial is actually old(i think it's 2006), but cos i use IE9 and 5.0Chrome browsers which i believe are newer i expect the codes to run on them. There are some of his examples that did not work on Firefox browser but at least they work on the 4.5IE he was using but to my surprise, despite the 100per cent copy and paste that i was doing for some of his example few of them did not still work properly on my own IE browser;codes like that one that aids text scrolling, onunload method and other few ones.So "Web whizes" help me out on what i need to do to give my scripting experience a jolly ride into becoming a wizard in my Web Development.
I'm not sure why this: Code: console.log(instance2.getAnotherKey()()); returns Object { a = "a" } when I clearly reassigned the value of the a property. Reassigning the property caused change in this line:
Code: ref.a = 'abc'; console.log(inst.getZ()); //Object {a="abc"} So why does it work when you call an instance method in the constructor (e.g. this.getZ()) but doesn't work when you call the instance method in prototype?
I have a table (tables are for tabular data) with patient information. The user can click the row to select it and when they do the right part of the interface loads some additional information on the patient - quick lookup info if you will, but also provides links to tasks involving that information - edit, view case history, etc.I'd like to replace the default right click behavior on the rows to create a pop up menu next to the point of click that links to the same list of options for the convenience of the more savvy users.The project is being built with prototype so no jQuery please. The site is a corporate intranet where Firefox is the only browser it is *required* to work in. It would be nice to have it work in webkit.
I have to open a new window when user closes the browser window. But the problem is that on browser close unload event calls and the same event is called with we refresh the page. So it is opening the popup window on both window close and window refresh.
Simple ajax call seems to have some issues in Firefox. The "onComplete:" is called BEFORE the response is returned by the call. Is there a coding issue or a work around?
var ajax = new Ajax.Request( url, {method: 'post', parameters: params, onComplete: evalInfo });
function evalInfo( request ) { // do stuff with request }
Should I have a timer that checks the request state before exec the evalInfo?
I have a series of web pages that enable communication with a MySQL database. The pages all work fine and mostly everything is just the way I want it.As many people do, I put JavaScript on the client side pages to check input before sending to the server. The scripts check for blank fields, non-numbers where there should be numbers, etc. I know from personal experience that the scripts work in Safari, Firefox, SeaMonkey, and others. The scripts do NOT work in IE! No matter what is entered in the boxes, IE says they are not numbers!In order to solve this problem, I wrote a much smaller script and purposely did not use the isNaN() function. I thought this would fix the problem but it did not. To see what I've done and try it in IE (any version) or any other browser,ej2ffej2.nfshost.com/checkNumbers/test.htmlIf someone can examine my JavaScript and tell me why this happens the way it does, that would be terrific. If someone has another idea of how to fix this, I would love to hear it.
I have encountered an issue with Javascript and my novice skill set has not allowed me to find a solution. On a page I have several images, when the user clicks on an image I pass some info about that image to my display html page. In the display page I want to display two images so I append Zoom.jpg and Medium.jpg to the string I passed. FireFox displays both images but IE does not seem to know what to do with it.
well as the title indicates I have a little bit of javascript code that works perfectly in IE but not at All in FireFox. the code checks the length of text in a textarea. the code for the textarea: Code:
I'm writing a SOAP type application that only works over ssl. Authentication works with Firefox but fails when I use a different browser. For some reason, chrome, opera, IE all omit the POST information and I don't understand why. Below is the requests sent to the server from Firefox and Opera. Following that is the javascript that sends the password. My js skills are pretty weak to say the least. Is "document" cross compatible or different for all browsers?
------------------Recieved------------------- POST /authme.cgi HTTP/1.1 Host: localhost:6060 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
This program (the search function) works well with IE8 but it is a mess with Firefox. My knowledge of Javascript is very limited:o. I have been unable to find what is wrong.
I have created a very simple JavaScript code to display larger images of a thumbnail image on the main section of a website. It works fine in FF3 however in IE 7 is giving me an error code of Invalid argument on line 6 character 1. The funny thing is I have used this exact code in another site and it worked fine with IE 7.
I am getting the following error in firefox and nothing happens when I click on the image map.
The "coords" attribute of <area shape="rect"> tag is not in the "left,top,right,bottom" format. As you can see above, I am using shape="poly" and not shape="rect".