JQuery :: IE/Opera Ignoring Load() Function?

Jan 19, 2010

I'm using the following chunk of code to find images located in a specific span and then I'm setting the span width to equal the width of the image that's inside of it. This is for adding captions to images through an editor that our writers use. By forcing the span to equal the same width of the image, the writers can just enter whatever captions they want and don't have to worry about manually adding <br /> tags to format the captions correctly.

$('.overview-content .caption img')
// once the image has loaded, execute this code
.load(function() {
// Loop through and find all images in the overview section

[Code].....

For some reason... IE and Opera completely ignore this function. Firefox, Safari and Chrome all add the appropriate inline style to the span.

View 4 Replies


ADVERTISEMENT

JQuery :: IE Ignoring Img Css() On Load/ready

Nov 15, 2011

I have been writing a script and need a gallery image to have it's width set on page load. My script works fine in safari, ff, chrome..but IE seems to ignore the line that sets the width of the image. It doesn't seem to be ignoring the other widths that are being set on certain divs. So it seems it is an image-only problem.

I thought it best to post a link to the page. To see the problem, you will have to have your browser set smaller than 885px in height. It's line 90 that seems to be ignored by IE

View 16 Replies View Related

JQuery :: Image Doesn't Load On Opera 10?

Feb 18, 2010

I try to get an image size like this : $("a").click(function(){

[Code]...

View 5 Replies View Related

JQuery :: Load In Opera 10.6 Not Firing Complete?

Aug 30, 2010

Opera is the only browser giving trouble with this jQuery statement:

[Code]..

The SELECT does not fill with ANY options. It is blank. Worse, I can turn on DragonFly in an effort to trace it down, and the problem disappears. The options are displayed as they should. I have a .lload function that I use to work around caching problems in IE. Using this function in Opera does not fix the problem. I have no reason to believe, therefore, that this is a caching issue.

View 1 Replies View Related

JQuery :: "Load" Method Doesn't Work In Chrome And Opera?

Apr 12, 2011

I have 2 page. one of them,is gallery.html and another one, is index.html.i want to load the content of the gallery page into <div id="content-gallery"></div> in index.html.I use the fallowing code :

$( 'a#gallery' ).click( function()
{
$( '#content-gallery' ).load( 'gallery.html' );
});

but it works only in IE8,FF, and safari. It doesn't work in chrome and opera (latest version).In opera and chrome, when i click on <a id="gallery">show gallery</a> it show only a bank page.i use jQuery Library v1.3.2.

View 6 Replies View Related

JQuery :: Select Ignoring Certain Characters ?

Feb 4, 2011

I have a system that provides titles that have had certain characters stripped out. Iwant to be able to select elements in an HTML document that match the titles, even when the titles in the HTML have notbeen stripped.For example, the title "F.B.I" will have the periods stripped to become "FBI", and I want to use that tomatch <div title="F.B.I">.

So far the only way I've been able to do it is to create a new attribute, set it to a stripped version of the title (using e.g. .replace(/./g, '') and match against that. It works, but it seems rather inefficient.Is there a simple and direct way to do this with jQuery?

View 9 Replies View Related

JQuery :: .html() Ignoring Updated Input Value?

Aug 18, 2009

I have to save the state of a form in a var before submitting it with the whole html, but if I alert the var, I get the original html without the updated input fields.

[Code]...

View 3 Replies View Related

JQuery :: Ignoring The Root Element When Passed Through Context?

Feb 4, 2011

jQuery is ignoring the root element when passed through context. Am not sure if this is intended behavior.[URL]

View 7 Replies View Related

JQuery :: Load Pages Into A Div Using The Load Function With AJAX

Feb 15, 2011

I have the following code to load some pages into a div using the load function. When I click one of the links though, nothing happens. I have read a couple of books on JQuery and looking at the examples they give, this looks correct so I am at a loss.

[Code]...

View 4 Replies View Related

Opera Function Visibility Oddity

Jul 23, 2005

Opera seems to have different ideas about the visibility of Javascript
functions than other browsers. For example, if I have this code:

if (1==2) {
function invisible() {
alert("invisible() called");
}
}

then most browsers will consider invisible() to be undefined. But in
Opera you can call it! You can try this online here: Code:

View 5 Replies View Related

Function Doesn't Work In Opera?

Sep 1, 2009

The following code opens the desired IE page if you are using IE, FF, Chrome or Safari(IE).. Otherwise, if you're not using IE, you get a message that you need to use it (just the way it has to be for now.) The function doesn't work in Opera -- I'm using 9.63.

Code:
function checkBrowser(){
ns = (document.layers) ? true : false;
ie = (document.all) ? true : false;
ff = document.getElementById? true : false;

[Code]....

View 3 Replies View Related

JQuery :: Can The .load() Function Load .php Pages

Nov 14, 2011

Can the .load() function load .php pages? example: $('#element').load('mynews.php');

View 3 Replies View Related

Div Ignoring Line Breaks

Jun 28, 2010

I am passing data from a textarea to a div with javascript. The problem is the div is ignoring line breaks.

document.getElementById('layer1').innerHTML = document.getElementById('reply').value.replace("
", "<br /><br />");
e.g... i entered this in the textarea
test1
test5
test6

the result was in the div

test1
test5 test6

the div is completely ignoring the line breaks.?

View 4 Replies View Related

JQuery :: Google.load Function Doesn't Work If Called From Ready Function?

Jul 1, 2010

I'm using the Google AJAX APIs, but some reason google.load works when run through normal javascript, but if I call the method from my jquery ready function it doesn't work. Code and output is below

page.html
<script type="text/javascript">
loadGoogleStuff();
function loaded() {
console.debug("in loaded function");
}
[Code]...

window.loadFirebugConsole is not a function If I comment out line 3 in code.js, the console debug runs okay, so the ready function is running okay. Even though there's a reference to Firebug, the same error occurs in Safari too. Nothing on the page loads.

View 1 Replies View Related

Sum Of An Array - Ignoring The Spaces Between Numbers?

Nov 9, 2010

I want to get the sum of all numbers in an text area irrespective of the spaces before between or after them. e.g. " 1 2 12 15 " =30

In the code below I can have multiple spaces or CR between numbers and it works giving me their sum But if i have a space before the first number or after the last number I get a NAN (

<html>
<head>
<title>Calc Numbers</title>

[code]....

View 3 Replies View Related

Split Ignoring Spaces Within Double Quotes

Nov 30, 2006

im trying to convert a string into arrays in javascript using split() function.

how to i split a string using spaces as a dilimeter but ignoring spaces enclosed by double quotes. ie: john robert "peter rabbit"

View 3 Replies View Related

JQuery :: Bind A Load Function?

Apr 19, 2010

I try to load some contentof the .load() function. this works like a charm. See my code here:

$('#index').load('link.html #content', function() {
$('#index').animate({'opacity':1},site_transition_speed);
show_loader("hide");

[code]....

View 4 Replies View Related

JQuery :: Cannot Get Function To Trigger On Load

Mar 24, 2010

Have a select drop down with an ID country. This function works fine when the user selects the country from the drop down however I cant seem to get it to Trigger on load. I am using Jquery 1.32 if this is useful?

$("#country").bind("load change", function () {
var val = $(this).val();
switch(val){
case 'USA':
$(".stateinput").hide();
$(".territorydropdown").hide();
$(".statedropdown").show();
$(".stateinput input").attr({name: 'countystate_hidden', id: 'countystate_hidden'}); .....

View 1 Replies View Related

JQuery :: Elements Get By Load Or Get Function

Jul 27, 2011

I'm having an issue with hover function in FF and Chrome. I've a table that's populated dynamically through ajax. I'm then trying to manipulate the elements sends through ajax, but it's not working in FF and Chrome. Here is the code of the page:

[Code]...

View 1 Replies View Related

JQuery :: Call Function In Load?

Oct 12, 2009

Did I do this right? I can't test right now but I think this should work:

function doSomething()
{
...
}
(".someImage").load(doSomething()) ;

I want to fire off doSomething() when the image is fully loaded.

View 2 Replies View Related

JQuery :: Load Cluetip From A Function

May 11, 2009

Is it possible to load cluetip from a function, such as:

The reason I ask is that sometimes you don't want to bind to all elements if a user will only select 1 or 2 items, sometimes the cluetip might not even get activated at all so it seems a waste of resources binding cluetip on document.ready

View 2 Replies View Related

JQuery :: .load(function() Not Working

May 8, 2009

I have a piece of code which has worked great in the past on this very site, but for some reason now, has stopped working. I put in the .ready function to try and fix it bc I understand that is a crucial peice of syntax for jquery. Still the code does not work. Everything in this code is not being executed, its like the code is being ignored.

[CODE]

If you would like details on the rest of the code, it can be found at: [url]

View 4 Replies View Related

JQuery :: Not Recognizing Function From .load()?

Jul 3, 2010

I am a newer user to javascript and jQuery and I have ran into a small problem. Here is my test [URL]..If you click the first link, everything works properly but if you click the link loaded from .load() the function fails to run.

View 2 Replies View Related

JQuery :: Using A Load Function With A Post?

Jul 24, 2009

I am unsure as to how to make this work.

var params = $('form#createAdjForm').serialize();
var url = "<?= $this->url(array('controller'=>'create-adjustment',
'action'=>'index'))?>";

[code]....

View 1 Replies View Related

JQuery :: 1.6 Load Function Callback Bug In IE?

May 9, 2011

I think that in jQuery 1.6 the callback function is failing in IE(8).I've reverted back to jq1.4 and all is okay. Sample code that fails in 1.6 for IE

8;$('#add_edit_contact_content').load('company/ajax/dsp_addEditContactContent.cfm', function(){
alert('loaded');
});

The error reported is; Message: Could not complete the operation due to error

80020101.
Line: 16
Char: 11777
Code: 0
URI: http://localhost:8300/XXXXXXXX/application/scripts/jQuery/jquery-1.6.min.js

View 1 Replies View Related

JQuery :: Load Function Not Working In IE 9?

Mar 16, 2011

I use the load js function to load the navigation menu on most html websites I build. I use it on my websiteHowever with the release of IE 9 just recently, according to adobe browser labs the load function is not working. Is anyone else experiencing this problem? Don't tell me IE 9 is not going to allow this to work. It works fine in IE 6, 7 and 8.I use a mac so can't test properly as my VMware is running vista which doesn't allow IE9 to be installed.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved