Find & Remove Second Instance Of Div Id=WNDS20
Nov 22, 2010
I have a page that loops through a db and places stories inside divs. I need to hide the first and second instances of those divs. Hiding the first one isn't a problem using display="none". The problem I'm having is how do I find and hide the second instance?
View 2 Replies
ADVERTISEMENT
Jun 15, 2010
I have the following style markup:
<h2>
<span class="status">
UNDER OFFER
</span>
[Code].....
As i'm trying to add an overlay image to the hyperlink so it will appear on top of the image that is already there (css absolute and z-index).
View 5 Replies
View Related
Jul 3, 2011
I have a file that generates web galleries in Adobe Lightroom. They are generated depending on which files are selected and the metadata in those files.
Basically it is a series of pages of thumbnails called index.html index_1.html index_2.html etc.
Then a set of pages for each individual image.
An example can be seen here: [url](the page navigation links are not great, but I have addressed that, they're at the bottom >> )
Currently if a user clicks on a photo there is a 'return to thumbnails button at the top, but this always takes them to /index.html
So the user could be at a picture after browsing to /index_39.html and still get returned to /index
Is there any way I can use history.go to find the last instance of index.html Or index_x.html (where x is any number) and take them back to that instead?
View 1 Replies
View Related
Feb 2, 2010
[URL] I solved the menu situation. Now, when a window isn't fully maximized, the page scrolls both horizontally and vertically. When it goes vertically, the image gets off-track. I just need to remove the vertical scroll capability from this javascript file: [URL]
View 1 Replies
View Related
Feb 18, 2011
its possible to use jQuery to find and remove/replace an email address from a textarea input either before the form is submitted or after?
View 1 Replies
View Related
Jul 20, 2005
These 2 lines caused an error in IE5. The error is "Function expected". Why?
var d=new Date();
document.write(d instanceof Object + "<br>");
View 7 Replies
View Related
Jul 4, 2006
I have some links that open a window, when this window is open various php processes are carried out and it sets serveral global variables. The problem i am having is users, you can't just tell them to have one instance of the window open you have to enfore that rule and i am having a problem doing that.
i have this code:
function launch(newURL, newName, newFeatures, orgName) {
var remote = open(newURL, newName, newFeatures);
if (remote.opener == null)
remote.opener = window;
remote.opener.name = orgName;
return remote;
}
and this function is called upon by another function Code:
View 1 Replies
View Related
Jul 6, 2010
I've been searching and playing with this script for the past few hours and finally got it work!
Code:
<script type="text/javascript">
function fnSelect(objId)
{
fnDeSelect();
[Code]......
View 12 Replies
View Related
Dec 17, 2005
I'm trying to use a variable that is passed into a function to to dynamically name an instance of an Object(). I've created a Timer() Object that seems to work just fine... the problem is I can't figure out how to pass in an instance name into setTimer() to create a new instance of Timer() object?? My ultimate goal is to have multiple instances of the Timer() Object running at once. While the code below works it only allows me to create 1 instance of the Timer() Object with the name of tmp. Code:
View 8 Replies
View Related
Mar 17, 2007
I have a String instance which contains the name of a class. Is there some way I can instantiate that class from given the class name in the string?
View 4 Replies
View Related
Jan 8, 2010
I am new to Javascript and am working with Ajax. I am building a content manager for my site, and I have an instance of CKEditor. I was wondering what the javascript would be to get the value of the textarea. Normally with a textarea I use formname.elementname.value. When I use that with the CKEditor I get a null value.
View 1 Replies
View Related
Jun 6, 2011
I have a script like below
Code:
<script type="text/javascript">
var monthtext=['January','February','March','April','May','June','July','August','September','October','November','December'];
[Code]...
Only the second calendar is taking effect. All the dropdowns in calendar1 is empty. Please help me.
View 3 Replies
View Related
May 27, 2009
<div>
Is it possible find a node backwards instead of forwards.
I would like to do (remember find_reverse does not exist)
View 7 Replies
View Related
Dec 23, 2005
I have the following code running in FireFox 1.5 (a remote XUL
application):
var req = new XMLHttpRequest();
// execution will block until request is
completed
// third param set to false makes request
synchronous
req.open(strMethod, uriTarget, false);
if(strMethod == "POST") {
req.setRequestHeader('Content-Type','application/x-www-form-urlencoded;
charset=UTF-8');
}
req.onreadystatechange = function () {
if (req.readyState == 4) {
if(req.status == 200) {
strResult = req.responseText;
xmlResult = req.responseXML;
}
else {
strLastError = uriTarget + " returned http error code " +
req.status + "
" + req.statusText;
if(intVerbosity > 1) throw new Error(strLastError);
}
}
}
req.onerror = function() {
strLastError = uriTarget + " fetch failed while " +
arrReadyState[req.readyState];
if(intVerbosity > 1) throw new Error(strLastError);
}
req.send(strRequest);
By the time it gets to req.send() (at the bottom) all the callback
functions like req.onerror still have values of null. I've verified
this using the Venkman debugger with req as a watch variable.
the code is clearly assigning functions to those callback function
objects. Any idea why they are all turning up null?
View 8 Replies
View Related
Apr 22, 2007
I have a javascript object which dynamically generates a table adding, deleting and moving rows as the user clicks on buttons or links. Problem is when I generate a table row and add the javascript method call to my class, I have to put the object instance name variable of the class in order for it to be called from the onclick=function(). This is seriously limiting, but I'm stuck for a way round it. Heres a edited of the code so you get the idea....
Instantiating the object :-
var dtl = new DynamicTableList("table1", $
{myObject.allFieldsAsJavaScriptArray}, true, true, true);
My javascript class DynamicTableList, note the dtl javascript object
instance variable being referred to in the addRow function. How can I
avoid this???
function DynamicTableList(thisObjName, tableName, options, showDelete,
showUp, showDown)
{
this.processRow = function(r, row, up, down)
{
...
};
this.processRows = function()
{
...
};
this.getVisibility = function(visible)
{
...
};
this.delRow = function(button)
{
...
};
this.addRow = function(selection)
{
...
if (showDelete)
{
var cell2 = document.createElement('TD');
var inp2 = document.createElement('IMG');
/
************************************************** ***********************************************/
inp2.onclick=function(){dtl.delRow(this);} // Have to specify
dtc!!!!!!!!
/
************************************************** ***********************************************/
inp2.title='Delete'
inp2.alt='Delete'
inp2.src='images/delete.gif'
cell2.appendChild(inp2);
row.appendChild(cell2);
}
...
tbody.appendChild(row);
this.processRows();
};
this.moveRow = function(node, vector)
{
};
}
Obviously the code dtl.delRow(this); is being dynamically generated, but how do I replace the dtl instance name with something that'll work whatever the user of this class calls the instance of it!
View 2 Replies
View Related
Sep 30, 2009
I have a client, let's call them "BuyNow." They would like for every instance of their name throughout the copy of their site to be stylized like "BuyNow," where the second half of their name is in bold.
I'd really hate to spend a day adding <strong> tags to all the copy. Is there a good way to do this using jQuery?
View 3 Replies
View Related
Nov 2, 2010
I was looking in the firebug debugger and noticed that my main .js file was somehow being called twice, but I don't see where. There are dozens of files involved in this particular problem, so I think the best way to go about solving it is to test - in run time - if my js file is already in place on the page, do nothing - otherwise call it. This is pseudo that I have monkeying around with but it's not working.
Code:
function checkFile() {
var fileExist = new fileExist();
fileExist.onLoad = isPresent;
[code]....
I thought this would work, perhaps it's because of an argument I need to pass in to checkFile(ZYX) but not sure.
View 2 Replies
View Related
Dec 14, 2009
I need to change the background-image (or possibly background-position) property of each new instance of a div with a particular class. I will have a set of images to choose from, or could create a sprite with all of the images.
Example:
Code:
<div class="desc">content</div> **needs background-image: url(pic1.jpg)
<div class="desc">content</div> **needs background-image: url(pic2.jpg)
...
etc.
The page code is dynamically generated from our CMS, so can't change the HTML.
View 3 Replies
View Related
Sep 6, 2010
Basically I have this code:
Code:
<div id="rightNews">
<div class="showHead">
<a href="#" class="showAcc">7th July 2010</a><br />
Lorium epsom diem Lorium epsom diem Lorium epsom diem
[Code]....
But when I click to expand one coloumn all of them expand as they have the same class, is there a way so the others close when another one is clicked?
View 2 Replies
View Related
Nov 2, 2011
I am wanting to add a style (bold and blue for example) to every instance of a word or words on my website. Is this possible with jQuery? And how would I write it?
View 1 Replies
View Related
Sep 1, 2011
I have found a great bit of javascript that I want to use on my site but I want to use it three times on the same page. If you look at [URL] you see three pictures at the bottom I want to make them change but the first only has four images the second has five and the third has three so I want to use the same code below on them all separatly.
Code:
<script type="text/javascript">
// Flexible Image Slideshow- By JavaScriptKit [URL]
// For this and over 400+ free scripts, visit JavaScript Kit-[URL]
// This notice must stay intact for use
var ultimateshow=new Array()
//ultimateshow[x]=["path to image", "OPTIONAL link for image", "OPTIONAL link target"]
ultimateshow[0]=['images/rotate/tattoos/main-tattoo1.jpg', '', '']
ultimateshow[1]=['images/rotate/tattoos/main-tattoo2.jpg', '', '']
ultimateshow[2]=['images/rotate/tattoos/main-tattoo3.jpg', '', '']
//configure the below 3 variables to set the dimension/background color of the slideshow .....
View 7 Replies
View Related
Apr 23, 2010
I've been working on a site that uses some JS to rotate some images near the top - the nice looking ones of the safari lodge :Which uses the code :
Code:
<script type="text/javascript">
//new fadeshow(IMAGES_ARRAY_NAME, slideshow_width, slideshow_height, borderwidth, delay,
[code]....
View 2 Replies
View Related
Oct 10, 2010
Is there a way to reinitialize a variable in a function without having to add another instance?
View 1 Replies
View Related
Sep 1, 2010
I'm using easySlider and masonry but I'm having problems in using multiple instances of easySlider. What I'm trying to do is to remove the first instance of easySlider and then create a new instance that has new set of images.[URL].. But it doesn't seem to work correctly. When you click box#1 (CM Partners) the slider works great. But when you click on box#3 (NBCM), the slider doesn't work and notice that it adds a 'Previous' link even though it's the first frame/slide. Also, the slider doesn't work.
[Code]...
View 1 Replies
View Related
Jun 8, 2011
I have made/modifying a script that I can create AJAX objects on the fly. It is working fine in Chrome, FF, Opera, Safari but not IE -.- IE = nightmare
[Code]...
View 1 Replies
View Related
Nov 2, 2011
How to I create the following code...
#moving {
position:absolute;
float:right;
top:100px;
[Code].....
View 2 Replies
View Related