473,378 Members | 1,721 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,378 software developers and data experts.

Simple Ajax SlideDown not functioning

Hello, I am trying to do a basic Ajax slide down for my site using Scriptalicious.

I had preexisting a div id called content, so I pasted the sample code into the site and the Slide down worked fine.

However, as soon as I changed the div ID name to anything else, there is no response from the site.


[HTML]<h3><a href="javascript:void(0);" onclick="Effect.SlideDown('content1');">View amenities</a></h3>
<div id="content1" style="display: none;">
Word
</div>
[/HTML]
Does anyone have an idea as to why this would happen?
Oct 8 '07 #1
3 1623
acoder
16,027 Expert Mod 8TB
Welcome to TSDN!

You haven't got any other elements with the same ID, have you?

Please use code tags when posting code:

[CODE=javascript]
JavaScript code here....
[/code]
Oct 8 '07 #2
No, definitely not. I just edited the id to a completely random Id (awrehrtjh) and the same thing happened. The curious thing is that if I place the id "content" into the script, it works like a charm. My content Id tag is for the entire body, however, and not this small effect.

This is nested into two div ids (content and column1), but I even tried taking the effect div outside of those and it still did not work.

Curious...

Expand|Select|Wrap|Line Numbers
  1. <h3><a href="javascript:Effect.SlideDown('awrehrtjh');">View amenities included in this home</a></h3>
  2. <div id="awrehrtjh" style="display: none; height:95px;">
  3. Word
  4. </div>
  5.  

Welcome to TSDN!

You haven't got any other elements with the same ID, have you?

Please use code tags when posting code:

Expand|Select|Wrap|Line Numbers
  1. JavaScript code here....
  2.  
Oct 8 '07 #3
acoder
16,027 Expert Mod 8TB
Try the code on its own without any other code as a test.
Oct 9 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Gaffar | last post by:
Hello. My name is Gaffar. I am handling an module in a Project. This application interface is slow and inefficient. So Client told "implement an AJAX Solution which will increase speed and...
7
by: Ivan Marsh | last post by:
Hey Folks, I'm having a heck of a time wrapping mind around AJAX. Anyone know of a simple, straight-forward example for pulling a simple query from mysql with PHP using AJAX? As I...
1
by: Eriston Danilo | last post by:
Prezados, Gostaria de saber se alguém já teve o seguinte problema e se conseguiu resolver. Tenho uma web app que usa AJAX, local funciona normalmente, mas no server de produção (intranet)...
1
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX -...
3
by: David Prentice | last post by:
I am having dificulty debugging an ASP.NET Ajax (Novemver CTP) app on windows vista RTM. I have found the following interesting facts but cannot join the dots . . If my application is...
2
by: Nathan Sokalski | last post by:
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously...
1
by: Spanco | last post by:
Hi all, Well my query is regarding the optimal use of ajax,I have to build a user control that is functioning of tree view .example There are three pane 1.In fist pane there is...
3
by: azura | last post by:
i had made two ajax in one form but not functioning very well... can help me?? this is my html code <input name="matric" type="text" id="matric" onChange="showName(this.value)" size="15" /> ...
3
by: heyi | last post by:
Hi Guys I need some expert advice on Ajax. I have some difficulties updating a <div> tag inside a table with Ajax. My html looks like this: ------------------------
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.