I'm using a javascript pagination div that I found on dynamicdrive.com, so I've been cut and pasting - I'm no javascript junkie, far from it! Right now, I have a pagination bar at the top of the article and one at the bottom, but when I use the one at the bottom, it sends me to the bottom of the next page, instead of the top. So I click ...
i have html table in another page i wont to read table cells value
page name qut.html
<table id="Table1" cellspacing="1" cellpadding="2" border="0" style="font-size:12px; font-family:Tahoma, Arial, Helvetica, sans-serif;" width="240px;" runat="server">
<tr bgcolor="#EAEBEE" class="text">
<td><img src="img/down.gif" width="...
In javascript, how do I remove an element from an array of objects?
Here is the code:
$.fn.mapImage.deletePinpoint = function(image, pinpoint){
var deleted = false;
for (var i = 0; i < image.pinpoints.length; i++) {
if(image.pinpoints[i].position == pinpoint.position){
image.pinpoints.remove(i);
d...
I have a form where a user can add multiple select boxes for multiple cities. The problem is that each newly generated select box needs to have a unique id. Can this be done is JavaScript?
UPDATE: here is the part of the form for selecting cities. Also note that i'm using some php to fill in the cities when a specific state is selected....
Hello I am trying to get the options from a html select element. The logic I am using is working in firefox, but it isn't working in IE. It gives me the length of the options array or the number of options but it isn't giving me the values of options. How do I troubleshoot this issue??
var SelectId= 'select_1'; //id of the html select e...
if $('.item:last').attr('id').split('-')[1] is not undefined var liid equals that, and if it is undefined then it equals null
...
Is it true that there are no guarantees across major browsers that the following script tags will always execute both sequentially AND in order of declaration? i.e. should I assume that the following code will not always yield x == 'ab' in alert?
<head>
<script type="text/javascript">
//tag A
var x = x || ''; x += 'a';
...
I have two sortables that are straight UL elements, each with at least on LI element and as many as ten, sorted like so:
$(".sortable").sortable({
connectWith: ".sortable",
cancel: '.no-drag',
}).disableSelection();
I want each UL to have a top-most LI element reading 'Title'. I don't want this LI element to be draggable, and ...
Possible Duplicates:
Which Javascript framework (jQuery vs Dojo vs )?
What JavaScript library would you choose for a new project and why?
Hi guys,
I have a question which might be an easy and well-known issue for professional javasript developers:
In our project, we are going to develop a heavy client-site unit-browser, w...
I'm trying to use the Yelp API to get local restaurants depending on the user's latitude and longitude. The trouble is that I'm quite sure how to do this. Looking at the page that I need to retrieve the data from, it says that the type is text/plain. Can I use Ajax to do this or will I not be able to since it is a different domain?
E...
VS 2010 does not seem to reliably step into evaled code. I have a debugger statement in the evaled code. In my example the evaled code is attached to a button click of the page.
If I attach to IE8 after opening the page in question and click the button, VS opens a window titled "Find Source: eval code". Looking at the Solution Explor...
Hello - I am trying to send an event to iframes which have been opened by the application based on few events which should be prior registered by iframes.
I cannot figure out how. I use jquery but I don't expect the iframes to be nice citizens to implement listeners in jQuery. Though I can mandate it - I am still looking for normal java...
I'm trying to make it so when the user presses a button on a Firefox extension, the button triggers the same function as if the user pressed the Enter key.
The code is at http://github.com/cwill747/KioskKeyboard/blob/master/kioskkeyboard/content/overlay.js, that's where the whole project is, but I'll post it here too.
doEnter: function...
Is there a jQuery sample application where I can look for best practices like:
XMLHttpRequest retries in case of network problems
XMLHttpRequest login
XMLHttpRequest element loading indicator
XMLHttpRequest history handling
?
...
Is there a module that already exists or can someone point me in the right direction for creating an autocomplete that works similar to Facebook's status update where you have standard text mixed in with autocompleted names that are activated by a delim character such as @. Plus, all of this placed within an editable div or multiline te...
Is it possible to define a event handler of one type of HTML object so that all the instances of this type of objects have this handler? for example, can I create a function func() as the onclick event handler of input text-fields so that all the input-fields have func() as its onclick event handler?
(it's just something like adding a f...
What I want to accomplish is simple. I want a button's text to change depending on what page your on.
I start this by using the following:
var loc_array = document.location.href.split('/');
Now that I have the url and split it in an array I can grab certain directories depending on the position, like so:
if (loc_array[loc_array.leng...
Is it possible using jquery (or just javascript) to check for the existence of a query string on the URL?
...
Hi All,
I drive into this issue:
I create COM object using C#, register it and managed to work with it using powershell.
when i trying to do the same with JavaScript it fails, but javascript keeps throwing object null errors.
Do you have any advice on how to fix this problem? or maybe you JavaScript doesn't support COM (if so, where can...
I have two input fields, Id and Desc. I need a javascript which enters the values in second text field based on some of the fields already set. Like for christmas day, if 12/25 is entered, it should say Christmas day.
Its working for one value. But if I put "else if" its not working for multiple values.
[code]
<script type="text/javasc...