On a side note: replace all your "div#myid" by "#myid", it will give a
performance boost, since you'll then be using the getElementById
instead of first selecting all divs, then finding the one with the id.

On Wed, Dec 10, 2008 at 10:57 AM, Alexandre Plennevaux
<[EMAIL PROTECTED]> wrote:
> so, the top of the code should be:
>
>
> var flag=false;
>
> $(document).ready(function(){
>
>       $("div#peik").hide();
>        $('div#cardbanki > div').hide();
>        $('div#pardakht > div').hide();
>
> ....
>
> });
>
> On Wed, Dec 10, 2008 at 10:53 AM, Alexandre Plennevaux
> <[EMAIL PROTECTED]> wrote:
>> in http://www.finaleshop.com/includes/javascript/rahnema1.js
>>
>> you have a typo
>>
>> var flag=false;
>> //$().ready(function(){
>>> $(function() {
>>
>>
>> that ">" sign is problematic.
>>
>>
>> continuing reading...
>>
>> On Wed, Dec 10, 2008 at 10:40 AM, [EMAIL PROTECTED]
>> <[EMAIL PROTECTED]> wrote:
>>>
>>> (thanks for your answers :*)
>>>
>>> <script type="text/javascript" src="includes/javascript/jqCore.js"></
>>> script>
>>> <script type="text/javascript" src="includes/javascript/rahnema1.js"></
>>> script>
>>>
>>> the urls are :
>>> http://www.finaleshop.com/includes/javascript/rahnema1.js
>>> http://www.finaleshop.com/includes/javascript/jqCore.js
>>>
>>> On Dec 10, 12:38 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]>
>>> wrote:
>>>> can you cut and paste the full html on the page, and show the
>>>> javascript external file links. that should be enoughf thanks.
>>>>
>>>> On Wed, Dec 10, 2008 at 10:36 AM, [EMAIL PROTECTED]
>>>>
>>>> <[EMAIL PROTECTED]> wrote:
>>>>
>>>> > ok, the code is:
>>>>
>>>> > var flag=false;
>>>> > $().ready(function(){
>>>>
>>>> >        $("div#peik").hide();
>>>> >        $('div#cardbanki > div').hide();
>>>> >        $('div#pardakht > div').hide();
>>>>
>>>> > ...
>>>>
>>>> > the error is on first div (like i said in first post)
>>>> > and if you want url , i must say that it's a persian eshop site
>>>> >http://www.finaleshop.com
>>>> > you must buy a product and then goto checkout_confirmation.php page
>>>> > (i suggest that pm me to talk about it ! :-s )
>>>>
>>>> > On Dec 10, 12:33 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>>>> > wrote:
>>>> >> nooo,
>>>> >> it wasn't helpful
>>>>
>>>> >> if anybody can help me please send a pm me at yahoo messsenger at
>>>> >> ( [EMAIL PROTECTED])
>>>> >> thankks :-s
>>>>
>>>> >> On Dec 10, 12:22 pm, JQueryProgrammer <[EMAIL PROTECTED]> wrote:
>>>>
>>>> >> > Try this:
>>>>
>>>> >> > $(function() {
>>>> >> >     // your code goes here.
>>>>
>>>> >> > });
>>>>
>>>> >> > Also while including the jquery file, write it as:
>>>>
>>>> >> > <script type="text/javascript" src="jquery.js"></script>
>>>>
>>>> >> > Check whether this helps.
>>>>
>>>> >> > On Dec 10, 2:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>>>>
>>>> >> > > hi
>>>>
>>>> >> > > i have written jquery for a site;
>>>> >> > > after a while for sth that i don't know it don't work anymore
>>>> >> > > and direbug give an error like this:
>>>>
>>>> >> > > $("div#peik") is null
>>>> >> > >      $("div#peik").hide();
>>>>
>>>> >> > > and when i try to write
>>>>
>>>> >> > >  $(document).ready()
>>>>
>>>> >> > > in firebug, it return :
>>>>
>>>> >> > > TypeError: $(document) is null
>>>>
>>>> >> > > whyyy is that?
>>>> >> > > pleeeas answer as soon as posible
>>>> >> > > thanks
>>
>

Reply via email to