JQuery :: Can't Seem To Get Started + Weird Content Behavior?

Jan 15, 2011

ok, here's the background on my "lets learn jquery" debacle ... I have downloaded it (plus the UI) and that demo index.html loads and functions perfectly.

well, I can create a brand new .html document, and include just the jquery.js and perform something, and it will work ... here's the thing, if I change *anything* in the source file, the content in firefox will not refresh ... I could even delete random tags, including the <body> tags, the <h1> tags and text ... and it will just not carry over to the browser. And, if I view the source on firefox it will show a random amount of lines removed from the bottom of the .html file

what in the world is happening ... it is driving me crazy that i cant figure this out. (btw i'm using jquery1.4.4 on centos5.4 + apache2.3.3, and firefox3.6.6 from win7 if it matters)

to recap, if i start with a blank/fresh/from scratch file it will work as designed ... but as soon as I change anything, adding or removing code/content, it blows up randomly displaying content (even old content that isnt even saved in the .html file anymore!)

View 1 Replies


ADVERTISEMENT

Displaying Content Based On Visitor Behavior Using Web Service

Aug 28, 2009

I'm using javascript in addition to a web service (BTBuckets) to display different content to visitors based on actions they take on my site. The javascript is working fine, but I noticed that if I simulate BTBuckets being disabled using Firefox Adblock none of the content shows up. So in the off chance of the service going offline it'll leave some pretty funky holes in the my content. I tried <noscript> tags which works with javascript off, but the content is still blank when I disable BTBuckets. I'm wondering if there's a way to display the default content if the service is unavailable?

Here's the code I'm using:
In the head:
<script type="text/javascript">
//<![CDATA[[
$BTB={s:XXXXX};
$BTB.jsh="[URL]";
//]]>
</script>
<script type="text/javascript">
document.write(unescape("%3Cscript src='" + $BTB.jsh.replace(/(https?:)/i,document.location.protocol) + "' type='text/javascript'%3E%3C/script%3E"));
</script>

The code in the body used to replace an image depending on visitor behavior:
<script type="text/javascript">
var _t = "";
if ($BTB.clusters["ppc_visitors"]) {
_t = ""images/top-photo-tracking-number.jpg" alt="Call Toll-Free: 1-800-XXX-XXXX">";
} else {
_t = ""images/top-photo.jpg" alt="Call Toll-Free: 1-800-XXX-XXXX">";
}
document.write('<img src= ' + _t );
</script>
<noscript><img src="images/top-photo.jpg" alt="Call
Toll-Free: 1-800-XXX-XXXX"></noscript>

View 2 Replies View Related

JQuery :: Cycle Just Can't Get Started?

Dec 6, 2010

Via Textpattern I am trying to create a vertical scroll of text on this page, bottom left below the html marquee I am trying to supersede:[URL]... It simply shows all my text without scrolling. Anyone have any clues as to what I might be doing wrong?

View 2 Replies View Related

JQuery :: Getting Started With JSON (and PHP)?

Aug 27, 2009

I need to return several values and I'd rather do it all in one ajax call. However there doesn't seem to be anything in data. Perhaps I'm way off here.

[Code]...

View 7 Replies View Related

JQuery :: Get Started On A Auto-refreshing?

Aug 9, 2010

Need som directions to find my way. First contact with jQuery. I want to auto refresh part of a page in a WordPress blog. already have a page geting the resoult i want from a include_result1.php and include_result2.php Want to make this results to be updated for visitor every 1 second. I am Using this:

<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#responsecontainer").load("include_result1.php
");
jQuery("#responsecontainer").load("include_result2.php

[Code]...

When i run this page the result from 1 and 2 keeps blinking alternation from one to another. It is very ugly. Is there a way to get this results beeing updated but in a quietly way as live content?

View 2 Replies View Related

JQuery :: Post Not Showing Up On Getting Started Forum

Oct 20, 2010

jQuery fileTree would like to display only {.php, .txt, .etc} files on the "Getting Started" forum and it still is not showing up on the list.

View 2 Replies View Related

JQuery :: SlideToggle Vs. Toggle Weird?

May 7, 2011

i'm looking for some help with a weird problem I've come across. So, I'm using jQuery's toggle() function to hide and show a html element, for example a <div>. Then I put the current state in a cookie ( visible / not ) and when I refresh the page I get the data from the cookie and if the state says non-visible I hide the element. So far so good. However, I wanted to add some animation to the whole thing so I've put slideToggle() instead of toggle() and it works, but when I refresh the page, the element won't hide. Any idea what's the problem? Am I wrong going for slideToggle?

View 1 Replies View Related

JQuery :: Weird Large Space After Code?

Dec 2, 2011

Warning: Complete newbie! I am trying to installthis simple slideshow as a header on my site. It is working fine, but there is an incredibly large gap after the header (see photo below) that is not supposed to be there. Here is the code I am using:

<script language="javascript" type="text/javascript" src="http://www.logfinish.com/logfindesign/pop-up.js"></script> <table width="1004" border="0" align="center" cellpadding="0" cellspacing="0">
tr>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<style>

[Code]...

View 1 Replies View Related

Getting Started With Javascript And AJAX

Aug 30, 2006

I'm interested in learning Javascript with an eye towards using it for
client-side user interfaces for web services, and I have a couple
questions.

First -- In reading some of the archives here, I've noticed a fairly
strongly held opinion that it is better to write purpose-built
Javascript than to use large libraries. Since this was what I was
planning on doing anyway, because of the size of the libraries and
compatibility quirks with Safari, it's nice to hear confirmation from
experts. That said, is the code in Prototype, Scriptaculous, and
OpenRico good enough to be worth reading and emulating?

Second -- I do much better with dead-tree references than with the
web, especially as a lot of the links that come up when I google for
Javascript topics are tutorials for the clueless by the clueless.
(Perl has the same problem, but with Perl I have enough knowledge to
filter the useful bits from the flat-out wrong bits.) Aside from the
O'Reilly Javascript reference (which I have) and _Ajax Hacks_ (which I
also have), are there other good references I should get my hands on?

View 1 Replies View Related

Delete Old Threads That I Started?

Dec 3, 2010

Is there a way to delete old threads that I started? They have links to my website and I'm still getting hits from users. The website no longer contains information referenced in the threads. The threads do not have the "Edit" button any longer.

View 1 Replies View Related

Weird Date Stuff...

Jul 23, 2005

Hey JavaScript gurus!

Here's a weird one:

If I check (with an alert) this line:
vStrDate2 = vDate.toLocaleString();

I get: Saturday, August 14, 2004 7:57:30 PM (as I should)

but this operation...

vStrDate = vDate.getMonth() + "/" + vDate.getDate() + "/" + vDate.getYear();

Avails me: 7/14/2004 (!?!?!?!)

I check my computer date and it definitely believes (as do I) that it is
August. Any idea why getmonth() thinks it's July?

Also, is there an easier way to get this American date string?

View 5 Replies View Related

Weird Behavoir While Using Function Aliases

Sep 19, 2006

I have the following script:

function Test(){}
Test.F = function(){}
Test.F.FF = function(){}
Test.F.FF.FFF = function(){}
Test.F.FF.FFF.FFFF = function(){}

//var alias = function(){};
var alias = Test.F.FF.FFF.FFFF;

var date1 = new Date();
for (var index = 0; index < 100000; index++)
Test.F.FF.FFF.FFFF();
//alias();
var date2 = new Date();
print(date2.getTime() - date1.getTime());


Why is it when I use Test.F.FF.FFF.FFFF() I get around 100ms and when I
get alias() I get around 280ms?

What is going on here? This is something I would have never anticipated
and I think that neither of you as well. Aliases whould work faster
then doing lockups at each iteration, right?
Also if I uncomment this line: var alias = function(){}, from 280ms I
get a drop to 265 ms?

View 22 Replies View Related

Weird SetAttribute('usemap',val) In Opera

Jan 7, 2007

It works OK in IE and Moz, but in Opera the change of the attribute's value works on once, first time. No error. That confuses me. Why works only once? Any ideas? Code:

View 16 Replies View Related

.split Adds A Weird Value To The End Or Array In IE?

Feb 5, 2010

For some reason, when i split a basic string in IE I'm getting an extra value in the array which is something like this:

function(v,n){n = (n==null)?0:n; var m = this.length;for(var i = n;
That's the actual value. Here's the call I use:
var value = "test@test.com, test1@test1.com";

[code]....

View 2 Replies View Related

JQuery :: Getting A Show Effect To Stop When Another Effect Is Started?

Apr 22, 2009

Im having a bit of trouble with the bounce show effect from jquery ui. To see what I mean, check out my development site. Anytime you modify a part in this computer builder, the rigth side gets updated. Right now its removing and adding list items. Problem is when click items too fast, the animation doesnt finish and the next item gets bumped lower and lower.

[Code]...

View 1 Replies View Related

JQuery :: Regarding The Behavior Of Supersubs In IE6?

Jun 27, 2009

My question is regarding the behavior of Supersubs in IE6. It seems to adjust to the correct width, but, it applies the new width to all of
the parent UL's of the widest LI. In IE7 and FF the new width is only applied to the containing UL of the LI.

View 1 Replies View Related

JQuery :: Getting "Uncaught SyntaxError: Unexpected Identifier" In A Weird Place?

Oct 30, 2011

my code is:
$(document).ready(function(){
$(".caftor").click(function(){
$(this).hide();
$.ajax({

[Code]...

View 1 Replies View Related

Javascript Created IFrame Document, Weird Domain Issue

Aug 3, 2005

I have an IFrame whose document is created completely by Javascript code at
runtime. The document in the IFrame accesses Javascript functions in the
top level document. This works fine most of the time. But every now and
then, when I hit the back button, the browser suddenly thinks the Javascript
created document in the IFrame is not from the same domain as the topmost
document, and therefore I start getting "permission denied" errors when I
try to access the top level document's Javascript functions.

If I look at the IFrame document's properties (Mozilla->This Frame->View
Info), it shows the expected URL with a domain name that matches the top
level document.

View 2 Replies View Related

JQuery :: Simulate Modal Dialog Behavior?

Dec 20, 2010

I have a div i would like to present and while it is presented i would like to disable everything else behind (like what modal dialog does). I'de like to write it myself and not use a plugin, is it hard to do?

View 1 Replies View Related

JQuery :: Different Behavior With Serialize And Object Literals?

Jun 20, 2010

my code:

GEvent.addListener(map, 'infowindowbeforeclose', function() {
var form1 = $('#window_form_tab1').serialize();
var name = form1.name_field;

[code]....

and this is the form:

''+
'<div id='window_div1' style='width: 300px; height: 300px; '>'+
' <form id='window_form_tab1'>'+
' <label>Tipo de espaço</label>'+

[code]....

View 2 Replies View Related

JQuery :: Inconsistent Event Behavior In WebKit Browsers

Jun 22, 2010

I have been spending my whole life on converting a flash version of a header/menu system to jQuery HTML. It is very nearly done in that it works nearly 100% perfectly in Firefox and IE8. [URL]. Unfortunately, in Chrome and Safari, my menu events of the top menu seem to fire inconsistently, and in the wrong order. It is easy to trigger a problem by simply circling your mouse over the top links. One of the menus will retract when it's already retracted, or the mouseover event for one or more of the links will seemingly detach, making the menu unusable.

The way it is supposed to work is as follows: Person hovers over link, causing menu to slide out and the mouseover event to be detached. This also triggers a 1 second timer that retracts the menuHovering over menu cancels 1 second timer.When the mouse leaves the menu, the menu is retracted and the original mouseover event is attached to the link. It's a bit hackish but it works and I've spent way too much time on this project as is. I have a lot of iphone detection checking to disable/enable some portions of the code if the browser is mobile safari. The site works fine in mobile safari as is.

View 2 Replies View Related

JQuery :: Can't Reproduce Modal Behavior - Prevent Clicks?

Apr 23, 2009

I'm trying to prevent any mouse clicks on my page (if only for a short time), and I have this working on a very simple test page, but within my application (that has a very large DOM footprint) nothing is working. function noop(){ return false; } jQuery( document ).bind( 'click mousedown mouseup', noop ); I am running this code well after the DOM is loaded. I've tried binding to document, document.body, "*", and window. I am not dealing with any frames. I've also tried unbinding any click/mousedown events prior to binding. I am currently using jQuery 1.2.6, although for fitness I tested this with 1.3.2 but I get the same results. What could I be doing wrong?

View 3 Replies View Related

JQuery :: Cycle Pause On Hover Behavior Reversed

Nov 7, 2011

I'm using the pause setting to pause the slide show when the mouse hovers over the slides. The problem is if I come from a page where the link is in the same area as the slide show, it reverses the hoverbehavior. That is, it cycles on hover and pauses when the mouse is moved off the slide show.

If the mouse is moved outside of the slide show before the page is loaded, it works correctly.

Here's the code:

View 3 Replies View Related

JQuery :: Unexpected $(document).ready() Behavior After Load The Page

Oct 7, 2009

I am experiencing unexpected behavior using $(document).ready() on a page where I inject jQuery after the page has loaded and then attach listeners to the ready event. The ready() event is never called using Firefox and Safari however it is called using IE. Is this a jQuery bug? Is it working as designed?

[Code]...

View 13 Replies View Related

JQuery :: Update To 1.5.1 Changed Browser Back Button Behavior?

Mar 29, 2011

I recently updated from jQuery 1.4 (I think 1.4.4) to 1.5.1. Before the upgrade, when users pressed the browser's Back button, they would usually be taken back to a page with all their changes intact. If they had modified input values or clicked objects that caused other parts of the page to change, they would still see those changes. Back literally took them back to the exact thing they were looking at before. Under 1.5.1, Back takes them to the prior page as it was when it first loaded. What changed? Can I get the old behavior back?

View 2 Replies View Related

JQuery :: Bizarre Behavior Caused By $('.classname').change() On Multiple <select>

Dec 15, 2010

I have a series of paired <select> objects. By paired I mean the <option> values of one is dependent on the state of the other via an ajax call. Something like:

[Cdoe]..

Here's where the bizarre behavior happens. If I trigger a change event for "primary" classes, i.e. $('.primary').change(), only the LAST "secondary" gets changed. For the list above only $('#number_six') would be dynamically filled. I tried using $('.primary').each(function(){ blah }) instead but got the same result. I read somewhere that some change events are only registered when the object is no longer in focus, so I tried adding .blur() to the end of the statement.

View 1 Replies View Related







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