Compiler/Checker - Notepad Or Firefox's Source Viewer Doesn't Indicate Anything
Mar 19, 2008
I'm new to Javascript but not new to programming.
I find JS more time consuming because I have to manually search line by line for a single error. In C++ or C the compiler tells me the exact line number of the error or at least what the error is so I can research it.
With JS, notepad or Firefox's source viewer doesn't indicate anything. Is there any software available that will error check JS codes?
I created a page with a thumbnail viewer. Click on a thumbnail and a larger version appears on the same page, NOT a pop up or Lightbox. It previews and validates fine. Even runs in IE. But not in FF(V. 3.6.18). Ideas? Code below with JS highlighted.
I've got the following simple image viewer code which works fine on Safari and IE, but doesn't quite work on Firefox. On Firefox, it shows just the first image, but doesn't change images when I click on the prev and next buttons.
<script type="text/javascript" <br /> function changeImage() {
$(".photo img").click(function(){ var title = $(this).attr("title"); $("#display").attr({src:"photo/"+title+".jpg"});}); $("#display").css({"marginTop":"-233px"});
[Code]....
When the page first loads, something goes wrong and your first attempt at viewing any thumbnail always comes up with a blank missing image - but from that point onwards, any subsequent attempts work as intended.
I have a site that I made that uses Javascript and HTML, is there such a thing as a Javascript/HTML compiler that will essentially take the site and make it into an executable file?
I have been trying to achieve this since yesterday night and am not able to figure out any solution as yet.
There's an XML page with RDF information inside. I want to simply get the source of this page and save it in a file.(basically i want to do a 'save as' without prompting the user.
I'll use the FSO for putting it into the file but to get the source of the page in a variable :
I think document.body or document.html do not work in Firefox. Also document.documentElement.getElementByTagName('xml' )[0].innerHTML is of no good.
Writing Javascript code in Notepad and saving it in HTML works fine. However when I write js in my DiDaPro editor and go to preview the screen it is blank. Why?
Is it possible to populate a drop down box using data from notepad....I have employee last names and first names in notepad and i want to pull it to my drop down...can java script do this....I tried it with a table and it worked...
I have 2 list boxes - one to fill the second one based on the selection, or move all items. You can remove the selection (or all items) from the second one to place it back in the first one. I expanded my horizons and thought to use script based on the js node operation appendChild(). It seemed so clean and easy to follow. Works beautifully in IE, but Firefox sees the value for a nanosecond but doesn't put it in the box. This is the relevant js:
function addSide(){ var addIndex = document.forms[0].sides.selectedIndex;
if (addIndex >= 0) { document.forms[0].selectedSides.appendChild(document.forms[0].sides.options(addIndex)); }}
function delSide(){ var selIndex = document.forms[0].selectedSides.selectedIndex; if (selIndex >= 0) { document.forms[0].sides.appendChild(document.forms[0].selectedSides.options(selIndex)) }}
function addAll(){ var len = document.forms[0].sides.length -1; for(i=len; i>=0; i--){ document.forms[0].selectedSides.appendChild(document.forms[0].sides(i)); }}
function delAll(){ var len = document.forms[0].selectedSides.length -1; for(i=len; i>=0; i--){ document.forms[0].sides.appendChild(document.forms[0].selectedSides(i)); }}
Is there a way to make it work for FF, or do I need to just start over and not use appendChild()? Is there a better way?
I am working on some sort of a program that will load data from a notepad or Excel file and load it into a ComboBox. The notepad file would have names and phone numbers in it. The ComboBox would only show their names in alphabetical order. There would also be a button that when you click it, it would open up Outlook (if you are signed into Outlook) and auto-fill the form with their phone number @ vtext.net (for texting verizon cell phones). The reason behind this is so the notepad or Excel file can be edited to add more users as the company expands.
I got some code that loads divs from other web pages into a particular div in my main page. In other words, I click on a button, and this tells jquery to load afragment of a particular page into my main page. For instance if I have 5 web pages onrock stars, I could have 5 buttons, and each button could load one rockstar's biography into a div on the main page (and replace whatever was there before). This works, and I do see the content that it loaded. But when I do 'view source' in IE, I do not see that content (the bio of the rock star). Another clue that this content is not really there, is when I try and run some code on that content. The content (from those external pages) have divs with specific names, and I try and make them into collapsible panels by running the following short function:
In IE6, putting the mouse on each of the two items highlights the word in a blue (different image) and shows a tool tip. In Firefox(1.5.0.6), nothing shows when mouse goes over it. Please view the source of that simple page (with some JavaScript) to see if you know how I can get this to look in Firefox like it does in IE?
I have a problem with a Javascript, which doesn't works in Firefox You can have a mouse over the 2 first pictures, but after the second picture has moved over the screen, nothing is happening when you move the mouse over the slideshow The source code:
I wrote the following page in a day or two. Everything seems to work excellent, apart from in Firefox (FF) in which it doesn't seem to work at all. None of the other browsers have any trouble with it.
I'm pretty new to Javascript (everything you see in the source code is pretty much all I know) and I have absolutely no idea why it doesn't work in Firefox.
The page in question could be found [link has been removed]. It's all there is to it.
I put in a code, so that when you hover over a link, text appears at the bottom of the page. My code works fine in IE 8, but the text doesn't appear in Firefox. I ran Firebug, and it gave me a "detailsbox is not defined" error.
<script type="text/javascript"> function menu (whichMenu,whatState){ if (document.getElementById)[code].....
i am using the following code to set the height of the div element based on its contents inside the div using the property scrollHeight. it works fine for IE but not firefox.
i have a javascript function to highlight google search keywords in the page. it works well on IE and mozilla browsers. for the page OnLoad, i call the Highlight() method, and that highlights the words in the page, and inserts a div element with the message: "your search terms have been highlighted..." and a link to remove the highlighting, which has href='javascript:removeHighlight(..)', but that only works in IE, not firefox 1.0. Code:
I've got here a sample of my function which is supposed to fade a certain piece of text to another colour. This line is then located in a for loop and it works pretty well in IE 6. However, in Firefox, and thus I assume it will be the same in Netscape and Mozilla, it gives a problem with the: getElementById('main_txt'). Due to that in setTimeout("",) it requires the "" signes and thus I can not use the same ones in the getElement part. IE has no problem with using '' in there, Firefox, however, does. Can anyone think of how to get around this and make firefox do this?