473,383 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

ready function too late?

Noob here.

I have incorporated the jquery ui tab control in my web app. It works Ok
but the page comes up un-tabbed and then flashes into the desired tab
setup. The tabs capability gets in via:

<script>
$(document).ready(function(){
$("#example ul").tabs();
});
</script>

Am I seeing the un-tabbed rendering initially because the above happens
too late? I copied that from the example here:

http://docs.jquery.com/UI/Tabs

kt
Oct 10 '08 #1
10 1785
On Oct 10, 10:03*pm, Kenny <kentil...@gmail.comwrote:
Noob here.

I have incorporated the jquery ui tab control in my web app. It works Ok
but the page comes up un-tabbed and then flashes into the desired tab
setup. The tabs capability gets in via:

<script>
* *$(document).ready(function(){
* * *$("#example ul").tabs();
* *});
</script>

Am I seeing the un-tabbed rendering initially because the above happens
too late? I copied that from the example here:

* *http://docs.jquery.com/UI/Tabs
It would be difficult getting any library specific help in this
newsgroup; maybe try posting in a group which specifically targets
your library of choice.
<URL: http://groups.google.com/group/jquery-en>

HTH,
/sasuke

Oct 10 '08 #2
sasuke wrote:
On Oct 10, 10:03 pm, Kenny <kentil...@gmail.comwrote:
>>Noob here.

I have incorporated the jquery ui tab control in my web app. It works Ok
but the page comes up un-tabbed and then flashes into the desired tab
setup. The tabs capability gets in via:

<script>
$(document).ready(function(){
$("#example ul").tabs();
});
</script>

Am I seeing the un-tabbed rendering initially because the above happens
too late? I copied that from the example here:

http://docs.jquery.com/UI/Tabs


It would be difficult getting any library specific help in this
newsgroup;
Why? Doesn't anyone use JQuery? I see it is considered Unworthy around
here but religion aside I thought someone would still know it and have a
clue. Besides, I was not asking for JQuery help, I was wondering if
there is an earlier event or opportunity (directly in the DIV tag?)
where I could get the tab set up.
maybe try posting in a group which specifically targets
your library of choice.
<URL: http://groups.google.com/group/jquery-en>
I understand. I had already checked those out and was underwhelmed by
the JQ options. Besides, as I said, I figured a JS group should have
some expertise and might like to help a noob with a simple question.

kt
Oct 10 '08 #3
On Oct 10, 1:03*pm, Kenny <kentil...@gmail.comwrote:
Noob here.

I have incorporated the jquery ui tab control in my web app. It works Ok
Take it out.
Oct 10 '08 #4
David Mark wrote:
On Oct 10, 1:03 pm, Kenny <kentil...@gmail.comwrote:
>>Noob here.

I have incorporated the jquery ui tab control in my web app. It works Ok


Take it out.
Right, and use WordPad to edit HTML directly. :) I saw your posts
complaining about JQuery internals, sounds bad. But I am a non-Web
programmer trying to get a prototype together /fast/ for a demo so there
is not time to go to school on JS and JQuery is working for us.

Can you recommend another library? Dojo looks like an alternative, but
the first thing I tried worked on one browser but not others. So far
JQuery has worked everywhere.

kt
Oct 10 '08 #5
Kenny wrote on 10 okt 2008 in comp.lang.javascript:
But I am a non-Web
programmer trying to get a prototype together /fast/ for a demo so there
is not time to go to school on JS and JQuery is working for us.
If JQuery were working for you, should you have such a Q?

JQuery is NOT usefull to overcome the inability of writing Javascript.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Oct 10 '08 #6
Kenny wrote:
David Mark wrote:
>On Oct 10, 1:03 pm, Kenny <kentil...@gmail.comwrote:
>>Noob here.

I have incorporated the jquery ui tab control in my web app. It works Ok


Take it out.

Right, and use WordPad to edit HTML directly. :) I saw your posts
complaining about JQuery internals, sounds bad. But I am a non-Web
programmer trying to get a prototype together /fast/ for a demo so there
is not time to go to school on JS and JQuery is working for us.
You are in the wrong place.
http://jibbering.com/faq/#onlineResources

has links to jQuery, states:

"...
No javascript libraries are endorsed by this group. If you are looking
for help using a library, visit that library's discussion group instead.
jQuery [English]
http://groups.google.com/group/jquery-en
Prototype & Scriptaculous
http://groups.google.com/group/prototype-scriptaculous

...."

Can you recommend another library?
No. That's not what this group is about anyway.

Garrett
>
kt
Oct 10 '08 #7
dhtml wrote:
Kenny wrote:
>David Mark wrote:
>>On Oct 10, 1:03 pm, Kenny <kentil...@gmail.comwrote:

Noob here.

I have incorporated the jquery ui tab control in my web app. It
works Ok
Take it out.

Right, and use WordPad to edit HTML directly. :) I saw your posts
complaining about JQuery internals, sounds bad. But I am a non-Web
programmer trying to get a prototype together /fast/ for a demo so
there is not time to go to school on JS and JQuery is working for us.

You are in the wrong place.
http://jibbering.com/faq/#onlineResources

has links to jQuery, states:

"...
No javascript libraries are endorsed by this group. If you are looking
for help using a library, visit that library's discussion group instead.
jQuery [English]
http://groups.google.com/group/jquery-en
Prototype & Scriptaculous
http://groups.google.com/group/prototype-scriptaculous

..."

>Can you recommend another library?

No. That's not what this group is about anyway.
<FAQENTRY>
Garrett
>>
kt
Oct 10 '08 #8
On Oct 10, 3:07*pm, Kenny <kentil...@gmail.comwrote:
David Mark wrote:
On Oct 10, 1:03 pm, Kenny <kentil...@gmail.comwrote:
>Noob here.
>I have incorporated the jquery ui tab control in my web app. It works Ok
Take it out.

Right, and use WordPad to edit HTML directly. :) I saw your posts
What do you use to edit HTML? I certainly wouldn't recommend WordPad.
complaining about JQuery internals, sounds bad. But I am a non-Web
It is bad.
programmer trying to get a prototype together /fast/ for a demo so there
Okay. For a prototype. Just realize you can't put into production
like that.

But now you are in the *very* unfortunate position of having to ask
questions of other jQuery users. Best of luck. I don't know why your
prototype has a FOUC and I don't have time to delve into it. If it
were a basic stand-alone tab script, then maybe as it would be much
simpler to spot the mistake. See where this is going?
is not time to go to school on JS and JQuery is working for us.
Sounds like it is working swimmingly. And as if you could judge what
works and what doesn't when using jQuery. Make sure you test it in
the same browser on the same box in the same configuration right
before the presentation.
>
Can you recommend another library? Dojo looks like an alternative, but
It's crap and general purpose browser scripting libraries are
generally a bad idea. You might look for a simple tab script for your
prototype.
the first thing I tried worked on one browser but not others. So far
The first thing you tried? Try again. The first thing the jQuery
genius tried didn't work so hot either. He apparently quit trying
too.
JQuery has worked everywhere.
Define "everywhere." My guess is you mean everywhere you thought to
try it, which means nothing.
Oct 10 '08 #9
dhtml wrote:
Kenny wrote:
>David Mark wrote:
>>On Oct 10, 1:03 pm, Kenny <kentil...@gmail.comwrote:
Noob here.

I have incorporated the jquery ui tab control in my web app. It works Ok

Take it out.
Right, and use WordPad to edit HTML directly. :) I saw your posts
complaining about JQuery internals, sounds bad. But I am a non-Web
programmer trying to get a prototype together /fast/ for a demo so there
is not time to go to school on JS and JQuery is working for us.

You are in the wrong place.
Nonsense.
http://jibbering.com/faq/#onlineResources

has links to jQuery, states:

"...
No javascript libraries are endorsed by this group.
That is not even remotely true which is why this section desperately needs
rewording or removing.
>Can you recommend another library?

No. That's not what this group is about anyway.
Given your appearance here only shortly ago, you are not exactly in a
position to make such an assessment. Incidentally, that is why I don't
think that despite your efforts (which are appreciated) you are the best
person for the job, at least not as a single FAQ maintainer.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Oct 11 '08 #10
David Mark wrote:
On Oct 10, 3:07 pm, Kenny <kentil...@gmail.comwrote:
>>David Mark wrote:
>>>On Oct 10, 1:03 pm, Kenny <kentil...@gmail.comwrote:
>>>>Noob here.
>>>>I have incorporated the jquery ui tab control in my web app. It works Ok
>>>Take it out.

Right, and use WordPad to edit HTML directly. :) I saw your posts


What do you use to edit HTML? I certainly wouldn't recommend WordPad.
I actually use the Lisp editor in Emacs mode. A little scary what
happens when I reflexively hit the keychord to compile a JS function. :)
>
>>complaining about JQuery internals, sounds bad. But I am a non-Web


It is bad.

>>programmer trying to get a prototype together /fast/ for a demo so there


Okay. For a prototype. Just realize you can't put into production
like that.

But now you are in the *very* unfortunate position of having to ask
questions of other jQuery users. Best of luck. I don't know why your
prototype has a FOUC and I don't have time to delve into it.
On Chrome and Safari it now works OK. I moved the tabbing script ahead
of everything else (it was after a lot of other JS). Timing is everything.
If it
were a basic stand-alone tab script, then maybe as it would be much
simpler to spot the mistake. See where this is going?

>>is not time to go to school on JS and JQuery is working for us.


Sounds like it is working swimmingly. And as if you could judge what
works and what doesn't when using jQuery.
True, who knows what evil lurks, but aside from IE behaving badly (we
did not have time to diagnose and just went with Chrome / Safari) the
way I judge is that I have yet to get an IR and there has been quite a
bit of use along the way. Management is thrilled with it and the rapid
development made possible by me using JQuery (and Lisp and Franz
WebActions). The scary thing is a month ago I had never programmed a web
app before. Now I have survived two rounds of layoffs and I am the
junior guy (tenure, not age).

ie, It is working for us.
Make sure you test it in
the same browser on the same box in the same configuration right
before the presentation.
Yep.
>
>>Can you recommend another library? Dojo looks like an alternative, but


It's crap and general purpose browser scripting libraries are
generally a bad idea. You might look for a simple tab script for your
prototype.
Straight JS/HTML? Ok, I'll keep an open mind on the next whiz-bang they
ask for.
>
>>the first thing I tried worked on one browser but not others. So far


The first thing you tried? Try again. The first thing the jQuery
genius tried didn't work so hot either. He apparently quit trying
too.

>>JQuery has worked everywhere.


Define "everywhere." My guess is you mean everywhere you thought to
try it, which means nothing.
IE, Safari, FireFox, and Chrome. Safari and FireFox on both XP and OS X.

Thanks for a good laugh, guys. I respect yout passion.

kenny
Oct 11 '08 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Polerio Babao Jr.II | last post by:
Please correct me if im wrong. I have depended much on python and wxpython gui apps. After a year of using python apps I was able to do good application written entirely in python. One big problem...
35
by: wired | last post by:
Hi, I've just taught myself C++, so I haven't learnt much about style or the like from any single source, and I'm quite styleless as a result. But at the same time, I really want nice code and I...
5
by: Ram | last post by:
Hi Friends I want to develope a custom control in .net which can be used with any project. I am writing a function in that class which I want to take any object as parameter. For that I have...
1
by: Shawn | last post by:
As if it won't be clear enough from my code, I'm pretty new to C programming. This code is being compiled with an ANSI-C compatible compiler for a microcontroller. That part, I believe, will be...
2
by: Jake Barnes | last post by:
In the function below, the reset() method has no effect. What is the correct way to ensure that singletonArrayToHoldElementsForTheNextRenderingOfTheCommunicationBox is empty? function...
7
by: momo | last post by:
Hello to all, I need some help. I am looking for a database connection function that I can use in my ASP.NET site. This would be in VB.NET. What I want to be able to do is call the function and...
3
by: Derick Beckwith | last post by:
Hello, How would I quickly determine if a logical disk drive is ready to use? I am developing for ver 1.1 so the DriveInfo class is not available to me. The method I am currently using seems to...
2
by: souporpower | last post by:
Hi All I am trying to print some HTML using JQUERY. I am posting the code. I don't see the alert. It seems as though the function is not registered when the document is loaded. Can someone...
53
by: souporpower | last post by:
Hello All I am trying to activate a link using Jquery. Here is my code; <html> <head> <script type="text/javascript" src="../../resources/js/ jquery-1.2.6.js"</script> <script...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.