-1
голосов
1ответов
310 просмотров

Firefox extension to alert on missing .js files?

I am porting a Web App to a new environment. Due to changed paths, some references to JavaScript Files () are broken. I know of no way to make Firefox / Firebug / the web developer toolbar to warn on missing JS files, or at least issue an information somewhere. Am I overlooking something? Thanks...

0
голосов
4ответов
508 просмотров

Ajax, PHP, Javascript, smart solution

I am currently creating a type of "classifieds" website, and when the user enters the site he/she is able to choose for example "Vehicles" in a dropdown list, and then choose mileage, year, price range etc... Here is my problem, I have managed to make contact with a db using Ajax to call a php s...

0
голосов
1ответов
856 просмотров

What is the best Struts2 compliant LGPL Javascript UI components library out there?

We currently have an application built with Struts 1.2. We are currently migrating it to Struts2 and are looking for a nice LGPL library of UI web components that will still exists within the next couple of years : The cream of the cream would have been ExtJS, but the GPL license (and its subtl...

0
голосов
2ответов
1755 просмотров

imageflow animation looks bad on IE with opacity=false

I've been trying to install imageFlow in a site. It works fine except in IE (8 in mycase). The problem is that the animation isn't smooth. I've looked at their demo in IE8 and it works great. I can't for the life of me understand why my example isn't working and theirs does. I"ve tried changing t...

0
голосов
2ответов
4649 просмотров

How to call/generate nyro modal pop up using javascript

hello friends i m new to jQuery and nyro modal. right now i m using nyro modal pop up in this way: <a href='#add_sub_user' class="nyroModal" > <input type="button" name="a1" value="Add" class="buttons" /> </a> Now i want to call the same pop up using javascript like "to sho...

0
голосов
2ответов
2277 просмотров

How to include dojox.gfx.SVG and dojox.gfx.VML in a custom Dojo build with cross-browser support?

I am using dojo.gfx to create vector shapes and text on my website and everything works fine when I am "dojo.require"-ing all dependencies in my Javascript. But when I'm building everything I need in a custom build (especially dojox.gfx, dojox.gfx.svg and dojox.gfx.vml), Dojo's automatic differen...

1
голосов
3ответов
971 просмотров

How to add event 'TabOpen' to all windows in a Firefox extension?

I'm writing a Firefox extension. I'd like to have my code executed whenever a new tab opens. I've tried this: for (var i=0; i<Application.windows.length; i++) { var w = Application.windows[i]; w.events.addListener("TabOpen", function(event){ alert( 'tab #'+w.activeTab.index +' opened...

3
голосов
8ответов
9231 просмотров

using jQuery (put at the bottom of the page) on specific page

Because of performance purposes I put loading of jQuery scripts at the bottom of the page (just before the closing body tag). My question is how to enable page specific scripts? I don't want to put everything inside $(document).ready method (again because of performance purposes). Update: I'm u...

2
голосов
7ответов
1730 просмотров

closing browser after failing to login 3 times

after failing to login 3 times (wrong password, username), i want the browser/window/tab to be closed. how can i do this in javascript or php? and also can you give me some suggestions on what i can do to my system when user fails to login 3 times. thanks.

30
голосов
3ответов
15681 просмотров

Firefox extension to find out which Javascript event is bound to an inspected element?

One can bind Javascript events to html elements without using inline declarations. Is there a way when inspecting an html element to know which events are bound to the element? I want to know about the events defined by the developer and not the internal ones that come with the browser. So if I...

2
голосов
2ответов
787 просмотров

Which GWT book to buy? Most seem to be for versions 1.4

I was thinking about getting GWT in Practice by Robert Cooper, or Google Web Toolkit Applications by Ryan Dewsbury However those are from May 08 and Dec 07. Both would be written for 1.4 - I was looking through the release notes to see what's changed since then: Nothing seems to have changed fr...

1
голосов
3ответов
447 просмотров

Object required

function OnImageClick () { var url; switch (picNumber) { case 0: url = "http://www.zagreb.in/horoskop/rak.html"; break; case 1: url = "http://www.zagreb.in/horoskop/ovan.html"; break; <-- error case 2: url = "http://www.zagreb.in/horoskop/djevica.html"; break; cas...

0
голосов
5ответов
425 просмотров

Is there a way to force open a new browser window from MOzilla to IE by Onclick function?

Iam getting new window pop up by using window.open(), but need When i click button in Mozilla browser, a new pop window should open in Internet Explorer, Is it possible......

8
голосов
2ответов
3537 просмотров

How to restrict AJAX API from unwanted use (e.g. someone performing a SELECT *)

I have a restaurant locater web application that mashes up the location of restaurants to a Google Maps. I use JQuery sliders to limit the amount of restaurant to show on the map by having Search filter such as: price, type of food, locale. These JQuery sliders call back via AJAX to an API I cr...

4
голосов
5ответов
270 просмотров

How can I represent a formula in a way that is understood by both Javascript and PHP?

I'm writing a shopping cart in PHP, and part of its function is to calculate shipping for a given set of products. For users with Javascript enabled, I want to provide the smoothest experience possible by having an accurate shipping calculation done on the client side so that changes in the cart ...

0
голосов
6ответов
125 просмотров

Is it possible to create some property in JavaScript that contain some methods?

Please look at my required JavaScript. var someVariable = new SomeDataType(); // I can directly access value of its property. someVariable.someProperty = "test"; alert(someVariable.someProperty); // <- this command must should "test" // However, I have some methods in above property // I w...

6
голосов
3ответов
4477 просмотров

Access event object in event handler

When i try to attach event handler functions with parameters like : myhandle.onclick = myfunction(param1,param2); function myfunction(param1,param2){ } Now I want to access the event object in my handler function. There is an approach mentioned on the web of sending event object, like: myhan...

0
голосов
1ответов
1873 просмотров

Prototype Javascript, working in Mozilla but not in IE

I am using JavaScript Library from prototype v.1.6.0.3 I found out that the basic notation $ is working fine in Mozilla, but not in IE6. Here is simple example Element.hide('div123'); --> working at IE & Mozilla $('div123').hide(); --> working only at Mozilla I am wondering what i...

0
голосов
1ответов
945 просмотров

jQuery accordion, clicking an already opened accordion item just toggles it

I have a semi-working example that you can look at. This appears to work as most would desire, though it shares a bug I am seeing in many other accordions, which is if you click on the an already opened header link, it will be closed, and then opened again. Any elegant solutions? Here is the j...

57
голосов
3ответов
20189 просмотров

What does javascript function return in the absence of a return statement?

I was just wondering, does a function without a return statement (or without hitting any return statements) return a value that is completely equivalent to false? For example: function foo(){}; !!foo(); This should return false if executed in firebug (but does not return anything if i just ca...

4
голосов
6ответов
266 просмотров

Can I learn how to use jQuery with just a basic JavaScript experience?

The question is: Is it bad to learn how to do special effects, table sorting, etc, using jQuery instead of learning the bits of code that bring that alive with pure javascript? I have previously addressed a similar problem in a question, but I missed adding this extra inquiry!

0
голосов
2ответов
122 просмотров

sIFR font sizing problems

I'm trying to render a font using sifr to about 160px in size, but it seems to stop expanding anything larger than half of what i require. i've tried setting the font-size in the sifr-config and css. but to no avail it still won't get any larger. Any ideas? My example page is here: http://oona...

0
голосов
1ответов
1242 просмотров

innerHTML flash video not loading problem

when the "preview" link is clicked it is meant to change the video script and video swf using the innerHTML method, however in IE 7+ the flash seems to appear but never loads the video i.e. it just stays white. <script> function changeVideo(filename,script) {document.getElementById('video'...

1
голосов
2ответов
755 просмотров

Detect if javascript is enabled in a winforms/mfc embedded browser

I have a native (windows) application that has an embedded web browser. Currently I'm invoking a javascript function from the backend (c++/c#). However, if javascript is disabled this fails and I'd like to provide a fallback mechanism. Is there a way to determine if javascript is disabled?

0
голосов
1ответов
718 просмотров

How to make a double linked-list in javascript + html

I have a class called listaDoble, in a Javascript document. And I have another HTML document with a text field and 4 buttons: Next, Back, New. When I press the New button I put, onmouseclick="lista= newListaDoble();", but then I lose the reference to the object. Some help?

18
голосов
4ответов
8436 просмотров

what are the "for" and "event" attributes of the script tag (Javascript,HTML)

In a web application I've inherited at work which was written about 10 years ago I've noticed the following code snippets repeatedly used: <script language="JavaScript" for="FG1" event="Mousedown(Button, Shift, x, y)"> { // some code here that uses the variables Button, Shift, x and y }...

2
голосов
3ответов
4120 просмотров

Simple jquery popup

I'd like to make a very simple jquery box come up saying "Sorry, that blog post could not be found." I don't want anything very advanced... How should I go about this?

14
голосов
2ответов
3155 просмотров

Prototypal vs Functional OOP in JavaScript

What are the pros and cons of each type/approach in writing Object Oriented scripts? Personally, I have found closures (functional? approach) as a way to encapsulate state more natural and perhaps more elegant. I, however, have heard that this use of closures is slower in JavaScript implementati...

0
голосов
2ответов
2367 просмотров

Escaping Apostrophes Input by Users Through Text Fields in a Rails App?

Update: If you look at the javascript code that I pasted in the update below, I have single quotes around the variety.name variable. I think I was just following a tutorial in doing that. Turns out that when I switch those to double quotes, everything works fine. Question: Is this a stable sol...

2
голосов
3ответов
4438 просмотров

how to pre-select an option in a dropdown in javascript?

i have this code for a dropdown if (chosen == "Parade") { selbox.options[selbox.options.length] = new Option("Select Venue",""); selbox.options[selbox.options.length] = new Option("Benavides Park","Benavides Park"); selbox.options[selbox.options.length] = new Option("CME Auditorium","CME A...