In my JavaScript program, I get values from a form through its elements and then print them in order, in an alert. This works fine in Firefox, but in Chrome the order is wacky and it ends with the "Submit" button.
I tried getting rid of the fieldset and adjusting the numbers, and it worked, but I liked the fieldset! Also, I can't just m...
I am trying to use the ctrl and + combination within firefox for a different action for our web application. How could I prevent firefox from zooming when our web application is listening for this event? I do not want to change a setting within firefox, but would like the code to do this somehow. Any suggestions?
...
here is my code:
$(document).ready(function() {
$("#OperatorID").focus();
$("#PartNumberID").autocomplete({
source: "ajax/getData.php",
minLength: 6,
delay: 100,
select: function(event, ui) {
$("#PartNumberID").val(ui.item.value);
$("#boxID").val(ui.item.box);
$("#PackageID"...
Let's assume there is a DIV element and it has CSS background-image property.
I want to get urldata(base64) of the background image with Javascript.
I can get urldata of IMG elements but how about this one ?
Thanks.
...
Given the following JavaScript:
var someFunction = function(id) {
//do some stuff
var modifyId = function(id) {
//do some stuff
outer.id = id; //is there any way to modify the id variable in the outer scope from here?
}
}
How do you modify the id passed into the outer function scope from within the inner function scope...
I've tried using both the JavaScript and PHP SDKs, but I can't solve this simple problem.
My FQL looks like:
SELECT count FROM comments_info WHERE xid="..."
When I attempt the request through PHP, I get the following error:
Uncaught Exception: 604: No valid app_id
PHP:
$facebook = new Facebook(array(
'appId' => '...',
'se...
I'm currently using the flexigrid.js plugin and there is a button that I wish to enable/disable depending on whether a certain cell in the currently selected row is equal to a certain value.
Here is where I am currently at:
I thought to add the following to the list of callback functions but am stuck as to what to put in the if statem...
Hi
New to stackoverfloow and in need of help, when submitting a form using ajax with javascript disabled, i get the following error:
Exception Details:
System.InvalidOperationException: The
model item passed into the dictionary
is of type
'<>f__AnonymousType11[System.String]',
but this dictionary requires a model
item of ...
I'm creating a series of video tutorials and would like to prevent users from seeking forward and skipping sections. I'll be using an HTML5 video player that will be used for desktop and iPad browsers. Ideally, I'd like this to work on the iPhone as well, but I realize you have no control over the video on the phone since it uses the i...
I've got an SQL database im doing some queries on and filling in a dropdown box with the code.
It's a select/combo box. It returns my database fields.
red
black
green.
In the source code i modified the query to get a second field in the same table.
red.jpg
black.jpg
green.jpg.
How can i at runtime display a picture of a red shirt ...
Hi all,
I currently have a method whereby there is an
<input type="text" id="politician" name="politician"
onkeyup="showResult(this.value)" value="Enter a politician's name"/>
tag. In that same file that includes the input tag, there is a link to an external javascript file called ajax.js
The contents of that file are as follows:...
I'm running into a very annoying issue developing javascript for a UIWebView in an iPhone application. If there is an error in the javascript, it silently fails and halts execution of the function it was running. And some errors do not happen in a desktop browser, so all appears fine. I then run it on an iPhone and get a massive failu...
Hi there,
This is probably unbelievably basic. In the code below, I have annotated the part that needs attention. I just do not know how to structure it if, instead of res.DATA.VALUE[i], I make it dynamic and write 'res.DATA.' + textCol + '[i]' (pure pseudocode, I realise it won't work)
function loadSelect(entity,textCol,retField,m...
I'm new to Netsuite customizations and I'm wondering if anyone has used any unit testing tool that plays nice with Netsuite.
...
I'm using jQuery UI's datepicker (http://docs.jquery.com/UI/Datepicker).
It sounds like it should be possible to mark certain days by providing a beforeShowDay function (http://docs.jquery.com/UI/Datepicker#event-beforeShowDay). But I can't get the CSS right for this. I'd like to make the background green for some days.
This is the Jav...
I noticed that like Google Email, FB's source code shows nothing but Javascript. Why do they use JS to write the page?
...
Hi,
I'm developing a jQTouch-based app for the iPhone and part of it uses the Google Maps API (V3). I want to be able to pass the geolocation coordinates to the map and have it center the location with a marker. What I'm getting now is the map at the proper zoom level but the desired center-point appears in the upper-righthand corner. ...
Given two points on a webpage and a set of DOM elements, how to find out the subset of those DOM elements that sit inside the rectangle area defined by the two points?
I am working on a web-based gallery, in which every photo is wrapped in a li tag. When a user drag out a rectangle area with mouse, all li elements inside the rectangle a...
What I'm trying to do is: when you mouse over any word in a body of text say for two seconds, it will become underlined. And if you click it, it will stay underlined until you click anywhere else or you click it one more time. Any suggestions?
...
Hi ,
I missed semicolons in some of the places in my javascript , but its not throwing error in any of the browsers. Do the : at the end needed for sure
...