This should help you
http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content
Newbie wrote:
I am working on an accordian side navigation jquery piece and I am
unable to get it to operate exactly how I want.
The menu was originally designed by Roshan Bhattarai and can
Hello.
At first I want to say I know it's not strictly jQuery issue but there
are many Javascript skilled people here that may know best so I hope
you forgive me... ;)
Ok, so here's a problem: I have a following function in which I change
some DOM elements:
function ttt(){
Hello all.
Like this:
var ColIndex = $(this).parent().children().index($(this));
I get the column index, when click on a row(not the table head). How
can I get the index of column, when click on the head of column?
Well for a start I wouldn't use a this kind of pause() trick if I were you,
it's pretty brutal suff looping along until time has passed will likely
freeze your interface and that's a bad thing. You'd probably be better off
with a setTimeout() which would delegate exécution of a callback after the
You dont need to submit again inside the submitHandler function.
$(form#send_gb).validate({
submitHandler: function(form) {
var gb_post = $(#gb_post).attr(value);
var userid = $(#userid).attr(value);
var ownerid = $(#ownerid).attr(value);
$.ajax({
On 16 Lis, 11:40, Michel Belleville michel.bellevi...@gmail.com
wrote:
Well for a start I wouldn't use a this kind of pause() trick if I were you,
it's pretty brutal suff looping along until time has passed will likely
freeze your interface and that's a bad thing.
Like I said... it's only a
Well, if you're aware of the side-effects, that's fine by me.
Still it's a bit like using an h-bomb to treat cancer patients, sure it's
likely to cure it 100% of the times, as long as you don't mind your patient
dying in the process.
Michel Belleville
2009/11/16 nowotny nowotn...@gmail.com
I found the information on closures. It is really mind numbing for
me to try and figure out all of the complexities of the nested
functions and redirections. I need to take some time and study
the documentation.
On Nov 15, 8:10 am, Atkinson, Sarah sarah.atkin...@cookmedical.com
wrote:
Look up
On Nov 15, 2:45 am, sprach wrote:
snip
... . In the code
above, firebug claims that form.submit() is not a function.
The DOM allows named form controls to be accessed as named properties
of the FORM element object. However, the FORM elements have a set of
properties/methods of their own,
You can't do this if the content of the iFrame is from a different
server / domain.
e.g. if it's not your content, then you can't get at it this way in
order to show it in your page; you can only display the iframe as the
owner intended.
L
webspee...@gmail.com wrote:
When I try it, I get
Hello,
i think none of the two suggestions could solve the issue.
This is the page where you could see the live example.
http://www.lavoro-marketing.it
The linkedin icon is not generated after a search.
It is not an issue of response for 1 element.
That script must be loaded on each row of the
I have been exploring the FullCalendar plugin (http://arshaw.com/
fullcalendar/), which works nicely. I have been able to display
information from one of my Google calendars, but have not had success
with multiple calendars. Does anyone know if this is possible?
Thanks -
george
Hi all,
I'm using the the getRowData() method without the rowid and I do not
receive all data in the grid into an array, I do not receive nothing,
but the grid has data.
The wiki said:
If the rowid is not set the method return all the data from the grid in array.
But If I give the rowid
You can attach the mouseenter event to the div like this:
$('div').mouseenter(function() { // Do stuff });
Documentation is at http://docs.jquery.com/Events/mouseenter
On Nov 15, 3:30 pm, Tom Lobato tomlob...@gmail.com wrote:
Hi,
in first, these days I started to play with jquery and I`m
Does anyone have any experience with the Jquery tab system? Below is
the instructions they've suggested to help prevent FOUC. Obviously, by
adding this CSS code all it does is hide the div's completely.
I'm trying to find out how to hide the inactive Tabs upon page load
and then remove/activate
Hi Adriana,
I am trying to use your Side Column nested accordion. I am trying to
use it as right hand navigation.
I am having all kinds of issues with it. It appears that the CSS for
our WWW site may be conflicting with wrapper, container styles of the
CSS for nested navigation. I tried renaming
Hello I am havign problem with using a callback function on the 'success'
parameter of the ajaxsubmit function . The callback works fine in FF but
not in IE 6-8 here my code
$( #signinform ).ajaxSubmit({ success: FormResponse});
function FormResponse( responseText, statusText )
{
//Code
Unfortunately, I am working in my development area and can not show you the
page. In itself it works fine. But when I try to remove/rename your
container style from the CSS, my CSS navigation container on the left
disappears.
Could you, please, explain the purpose container and wrapper classes
Use FireBug to see which styles apply to what element and where they're
defined. If you don't show any code it's hard to help you.
Jonathan
Akbar Ehsan wrote:
Unfortunately, I am working in my development area and can not show
you the page. In itself it works fine. But when I try to
Here is the example page: http://www.turnstylecreative.com/new/work.php
I've also tried the follow tutorial with no luck.
http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-unstyled-content
On Nov 16, 10:56 am, StephenJacob turnstylecreat...@gmail.com wrote:
Does anyone have
Hi all:
I have a website. All my images are in /img directory.
Now, my client needs to put the site in a subdirectory, so, my
images are now in /subdir/img.
In the future, maybe we have to change the site to another
subdirectory.
I don´t want to change all my CSS anytime the
I am using Firebug.
The code I have in my CSS:
#wrapper {
margin-left: auto; /*centers the div in Mozilla*/
margin-right: auto; /*centers the div in Mozilla*/
width:775px;
}
#container{
width:775px;
height:auto;
clear:both;
margin-left:
it would be a bad idea to do this with javascript.
I'd recommend simply using find and replace all in your css.
find url(/img
replace url(/subdir/img
nomen wrote:
Hi all:
I have a website. All my images are in /img directory.
Now, my client needs to put the site in a subdirectory, so,
First idea that comes to mind is to let your client define another site
base, you then don't even have to change your css as the apparent site base
would be the client's sub-directory.
You do that using the base tag as shown here :
http://www.w3schools.com/TAGS/tag_base.asp
Hope it helps.
Michel
Hallo all.
I have a problem downloading a file via ajax.
I contact via ajax a server-side component (i.e. Servlet) that creates
a pdf and attach it to the response.
When I receive the response I cannot pass the control to the browser.
Any idea hot to make it?
Kind regards
Massimo
Hi:
Liam: My client needs to have the posibility to change itself the
image path and he is not a programmer, The maximun complication should
be to change a text by another text. Anyway I know it is a posibility
and I have it in mind.
Michel: I try to use the base tag but I´m using CakePHP
I know it's possible, but it's a really poor way to do this as it will
break the cache.
You should do it with server side code then, can you not edit the html
helper of cakePHP to add the sub directory for you?
nomen wrote:
Hi:
Liam: My client needs to have the posibility to change itself
Well, the other option would be once the page is loaded to round all
elements of your page, pick the ones with a background-image and regexp them
to submission. I'd advise against this solution though, on the grounds that
:
- it's not really simpler than adding a background-image correcting
Hi,
i don't know how can you attach any other file but xml to
HTTPresponse. I rather do sth like that:
- load php file which return link to pdf
- open new window with pdf file
code:
$.ajax({
type: POST,
url: /Portfolio09/scripts/setLang.php,
data: param,
success:
Hi,
i don't know how can you attach any other file but xml to
HTTPresponse. I rather do sth like that:
- load php file which return link to pdf
- open new window with pdf file
code:
$.ajax({
type: POST,
url: phpfile.php,
data: param,
success: function(html){
This will also likely create a ton of 404s for the bogus image
requests that are made prior to your JS fixing the image URLs. If
your client likes to look at web logs to identify broken links, this
will become a headache.
I'm going to echo everyone else's sentiments that this is a bad idea.
This
When I use the jquery validate it creates a label with the error
message field and add the error class in my imput, but I want him to
add that only the class of error in the input without creating the
label is possible?
Hi Serhat,
Thanks for the reply.
Well, I've gone through the code and I'm using just the same code. I
went through the code again and again but it wasn't working.
Afterwards, I decided to test it on different browsers and it worked
in IE 8, but it didn't work in FF 3.5, Chrome.
Here is the
I am having trouble rounding numbers in the code below. I would like
insulBlocks to round up to a whole number and 8Blocks, 10Blocks
12Blocks to round to 2 decimal places.
I've tried several things but being a newbie I'm guessing I'm just
putting things in the wrong place.
Thanks for reading.
Found a bug in SimpleModal 1.33
- If Content Height is Greater Than the Minimum Height, the Content
Height should be Minimum Height.
+ If Content Height is Less Than the Minimum Height, the Content
Height should be Minimum Height.
@@ -463,7 +463,7 @@
}
Hi everyone, I have a form that is being validated with the Jquery
Validation Plugin. I have managed to get a central message Please
Recheck the form, and to have the input focus on the first error.
(Although, Im not too sure the input is working) To get this, I had
to override the default message
Hi, I created this mainly as an academic challenge, but hopefully it will be
useful. If I've sent this to the wrong list, please let me know where I
should direct it instead.
All the best,
Bryan Garaventa
gsQuery, the jQuery shell API
gsQuery, the jQuery JavaScript library shell, is a
Hi Guys,
I know this will be a simple fix - but i've downloaded superfish,
installed the css and js files, inserted everything into the head of
my site but simply don't understand what i need to change now to get
it all running.
The superfish homepage states Begin with a working pure CSS
I've searched online for any posting related to a Jquery Conference in
2010. Does anyone have an idea if there will be another hosted and if
so will it be in Boston; 2010?
Hi,
tried to include .html file in .html file
files structure:
inc_part.html
pages/my_file.html
write in my_file.html
script type=text/javascript src=../../../js/jquery-1.3.1.js/
script
$(document).ready(function(){
$(#loader).load('../inc_part.html');
})
div id=loader/div
It works in
Has any body used superfish with the hoverIntent script?
I've followed the online examples but I'm still seem to be having
problems getting it to work its doesn't appear in IE6 and the rollover
doesn't seem to work
http://www.georgeforeman.co.uk/beta - Not working
Hi,
This is the situation:
I have a webpage that uses 2 different css definitions. One definition
is for viewing the page in the browser and one is used when printing
the page. The page is using a plugin (jScrollPane) to hide the normal
scrollbar and display a dhtml-scrollbar.
- Both css are
Hey,
If you are referring to hovering your mouse over a div there is the
hover event:
$('#divid').hover(function(){
// Implement code while mouse is hovering div
},function(){
// Implement code while mouse leaves div
});
There are different mouse events too. Check them out at:
Hi there, sorry if I am in the wrong forum for this question, but I don
´t know where else to ask. I got a simple CSS problem with the
Superfish menu: how do i change it's skin I edited superfish.css
to get this result: http://www.qomg.com.ar/qomg/index.php/ but now I´m
stuck: which file do I
Hey,
Don't know if you mean when you hover over a div? Cause then you
should just use the hover event:
$('#divid').hover(function(){}
//Implement code while hovering
,function(){
// Implement code when you exit the div
});
Hope this helps.
Greetz,
Rick
Hi, I have the same problem too. Have you found a solution. I've
checked the code and the problem is in the selection function:
$.fn.selection
this part:
if (field.createTextRange) {
var range = document.selection.createRange(),
orig = field.value,
teststring
Hi, I have an HTML page which uses AJAX to load in information from
Yahoo finance via CSV files and one AJAX call that calls a PHP file
and performes some screen scraping.
The problem: When these AJAX calls are performing their task it
becomes impossible to click any links on the page. It freezes
hi there
I just can't figure this out.
I have a select element, that when a user chooses Create, triggers a
modal dialog $(#dialog) with a form retrived from a remote page with
ajax. I don't want to hard code the form in the current page as it can
be called from many pages. This works.
I then
Hi there!
I know there's a ton of different autocomplete plugins out there, but
I still haven't found a single one that provides a great feature found
in scrip.aculo.us' autocomplete widget: Adding class=informal to an
element makes it non-selectable.
This is great for e.g. categorizing your
I'm trying to filter the XFN relationships meta data. If you don't
know, it works like this:
a href=site rel=friend colleague Name /a
in REL you can have various values, like friend, collegue but even
me and met
because you can have multiple values, I did this:
xfn_me = $(a[rel*=me]).length;
Every body loves a little treat in their websites...
Well I believe jQuery holds the PERFECT javascript library for doing
the Konami Code. A fan of Konami, and having such a cool little hidden
feature to your websites, I decided i'd share my code with the world,
or at least
those people who'd
Hi Shane,
great, it works!
thank you :)
Shane Riley escreveu:
You can attach the mouseenter event to the div like this:
$('div').mouseenter(function() { // Do stuff });
Documentation is at http://docs.jquery.com/Events/mouseenter
On Nov 15, 3:30 pm, Tom Lobato tomlob...@gmail.com wrote:
Is there a list somewhere of what the options are for the rules (required,
email)
I can't seem to find more info on this in the jquery site.
Can't you use remote validation? This code should work.
$(#password).rules(add, {
messages: { remote: Invalid password. },
required: true,
remote: {
url: .../UVServer/login.php,
type: get,
http://docs.jquery.com/Plugins/Validation/Methods
Also, I found it was worth while to look into jquery.validation.js
code.
On Nov 17, 8:55 am, Atkinson, Sarah sarah.atkin...@cookmedical.com
wrote:
Is there a list somewhere of what the options are for the rules (required,
email)
I can't seem
Hi Rick!
yes, over a div. But I need to know if the mouse is or not over it.
I made it setting a flag in the callbacks of the hover event:
// show/hide gallery
var is_over = false;
$(#ftdest_forum).hover(function(){
is_over = true
chvis(1.0)
}, function(){
is_over = false
submitHandler: function(form) { var pwd = $('#password').val(); // md5 encode
the password md5pwd = hex_md5(pwd); function submitform(){form.submit(); }
//$('#password').val(pwd);
$.get('../UVServer/login.php',{email:$('#email').val(), password: md5pwd},
function(resp) { if
Put a space after me or alternatively, use a delimiter if it is
possible.
-- HTML
a href=site rel=me me /a
a href=site rel=met met /a
-- Code
xfn_me = $(a[rel*='me ']).length;
or
xfn_me = $(a[rel*='me.']).length;
On Nov 17, 6:57 am, UVL andrea.do...@gmail.com wrote:
I'm trying to filter
Hi,
there is a search box in the top right of this page;)
http://groups.google.com/group/jquery-en/browse_thread/thread/e819cef9e28502b0#
On 16 Lis, 05:02, cfred fallreco...@gmail.com wrote:
I am having trouble rounding numbers in the code below. I would like
insulBlocks to round up to a
Hi,
u should rethink all code. In my opinion the easiest way is to attach
in each row of the output some hidden element like:
input class=hidden-elem type=hidden value=?=$fld [id];?/
instead of your JavaScript code
and in file a, in JavaScript section create function (use it as Ajax
callback)
Does anyone know how to add the spinner to the field that's being checked
remote?
I have the validation and the rules working. I just cant seem to see how to
add the little gif to let the user know something is happening while it
checking.
script type=text/JavaScript
superfish.css is what yo need to look for, however since you are
implementing into a joomla template that already has another menu's css
it gets a bit more complicated as you also have file navigation.css
interacting as well
In some cases superfish rules will prevail, in others it will be the
Actually, the values are correct, this isn't a bug.
mh and mw stand for maximum height and maximum width. ;) That isn't
apparent from the variable names, but you can tell when they are
assigned.
-Eric
On Nov 15, 9:11 pm, Enobrev enob...@gmail.com wrote:
Found a bug in SimpleModal 1.33
- If
Well, I almost have this working.
I have uploaded a new test at http://www.martinschechtman.com/validateTest.html.
If you press submit with nothing selected in either of the dropdowns,
there's only 1 warning. Just what I want.
Then if you select something from the first dropdown, the warning
Yes, I tried what other posts said without luck. Which is why I posted
my code to see if someone would be kind enough to help. Thanks.
On Nov 16, 5:34 pm, PiotrJaniak janiak.piot...@gmail.com wrote:
Hi,
there is a search box in the top right of this page;)
OK; here u go:
$(#insulBlocks).html(Match.ceil(parseInt($(#totalArea).html()) / .
889 * 2));
$(#8Blocks).html(Match.ceil(parseInt($(#insulBlocks).html()) * .25
* 100) / 100);
$(#10Blocks).html(Match.ceil(parseInt($(#insulBlocks).html()) * .
35 * 100) / 100);
Hi Akbar,
You don't need ANY css styles from my demo page, you need ONLY the
script nested_accordion.js.
Place your unordered list wherever you want in your HTML document and
style it to correspond
your page style.
For example, if your page structure is something like this:
body
div
Hi every:
I'm trying to use jCorner to get rounded effects in some of my DIV but
when I run the page nothing happen and I get this error:
$ is not a function
[Break on this error] $().ready(function(){\n
I've included jQuery and jCorner libraries as follow:
script src=jquery.js
Try this
var test = 3.141592;
alert(test.toFixed(2));
Hi,
I am very new to javascript and jQuery. I'm going through a book right
now but I'm just not there yet.
I found the fantastic superfish plugin. I am good at CSS and have a
valid, fully-functioning CSS-only menu. Superfish also works great:
the animation and delay works perfectly. However I am
I'm using the validate.js plugin but need to validate the form onblur
instead of onsubmit.
How do I alter the code to validate onblur?
Thanks,
Marina
Is it possible to make both the next button and the picture to change
to the next picture with jquery.cycle?
like in facebook!
I tried to give them both the #next id but only on works..
Can I duplicate the next function and rename it so that I am able to
use it twice??
Cheers
Hi-
I'm just getting into jQuery plugins and I wanted to do a sort of
'hello world' exercise with a barebones plugin template. My template
code is below but I can't get the console.log statement in the setup()
function to show in a firebug console window. IIf I put a console.log
statement
Sorry, my mistake:
The variable 'containerID' in the script is the ID of the closest
named container of the accordion.
In the above example containerID = #rightcol.
demo: http://carlnunes.dev/slider-demo/ http://carlnunes.dev/slider-demo/
demo files archive: http://carlnunes.dev/slider-demo/slider-demo.zip
http://carlnunes.dev/slider-demo/slider-demo.zip
attached: http://old.nabble.com/file/p26383109/slider-demo.zip
slider-demo.zip
goal: display
Please replace .dev with .com.
I'm sorry to say I posted the wrong URLs.
Thank you,
Carl
carlnunes wrote:
demo: http://carlnunes.dev/slider-demo/ http://carlnunes.dev/slider-demo/
demo files archive: http://carlnunes.dev/slider-demo/slider-demo.zip
Thanks. Will give it a shot tomorrow. I have it almost figured out. But your
explanation helps greatly and will make it easier for me.
On Mon, Nov 16, 2009 at 8:31 PM, Adriana adipa...@yahoo.com wrote:
Sorry, my mistake:
The variable 'containerID' in the script is the ID of the closest
named
I am animating an image's height. Afterwards, I want to know the
image's width. The following code gives the image's width prior to the
animation.
function growBigger(element) {
var myWidth = $(element)
.find(img)
.animate({
need to include superfish.css, script adds a number of classes for
features you list and you need css to manage them
Ryan Kirk wrote:
Hi,
I am very new to _javascript_ and jQuery. I'm going through a book right
now but I'm just not there yet.
I found the fantastic superfish plugin. I am
Hi,
I'm new to jQuery, and plan on doing some tutorials to get more familiar
with it. But my ultimate goal is to make a UI that has somewhat similar
behavior as MS Excel in the sense that you can select multiple blocks and
edit single cells (I don't need any calculations though). A click-drag
Hi,
I am trying to figure out how to intercept find requests made in the
Find bar. Does jQuery support this kind of interaction? Is it actually
possible?
Thanks,
Nicolas
question hard to understand however important that ID's must be unique.
You could have 20 next buttons if you use class instead of ID
$('.next").click(function() {
// do something
})
Would work on all the following:
a href="" class="next"click here/a
h3 class="next"click here/h3
p
Nice informative thread but we can further read about this topic on
forextradingevo.com this informative web site covers all the matters related
to this topic I hope this type of informative thread will come again and
again.
-
http://www.forextradingevo.com FOREX TRADING EDUCATION
--
*Edited js, html, and css(see attached) but the below code was key.
original code in js:
function setCurrent(i){
i = parseInt(i)+1;
$(li, # +
options.numericId).removeClass(current);
$(li# +
What's between the script src tags and the script tag containing your
own code ?...
Michel Belleville
2009/11/17 ReynierPM rper...@uci.cu
Hi every:
I'm trying to use jCorner to get rounded effects in some of my DIV but when
I run the page nothing happen and I get this error:
$ is not a
Hi Team,
I would like to put together a basic tagging system in Adobe Business
Catalyst. I need to be able to define: If keyword / phrase appears in
#id make wrap a following href X around it. So I would define a list
of key phrases that may appear in the #id and the links to add to
them.
I hope
HI
I am very new to Java scripting. I am stuck at one html page which has 6
SELECT blocks with same ID attribute and options in this SELECT blocks
are nothing but the links to different pages ( ALL LINKS ARE UNIQUE ) .
This page is dynamically generated by ( Template Toolkit ) so I can not
87 matches
Mail list logo