Changing content on click
I have a nav bar on the side, and when the user clicks on a link, the nav content changes. here is my code:
$('#allNav').click(function() {
$("#allTitle").html("My Files");
$("#allTitle").load("http://mysite.com/getFiles.php");
$("#navPane").html("<li><div id='allNav'><strong><a href='#'>~All</a></strong></div></li><li><div id='photoNav'><a href='#'>~Photo Gallery</a></div></li><li><div id='docsNav'><a href='#'>~My Documents</a></div></li></ul> ");
$('#photoNav').click(function() {
$("#allTitle").html("Photo Gallery");
$("#navPane").html("<li><div id='allNav'><a href='#'>~All</a></div></li><li><div id='photoNav'><strong><a href='#'>~Photo Gallery</a></strong></div></li><li><div id='docsNav'><a href='#'>~My Documents</a></div></li></ul> ");
$('#docsNav').click(function() {
$("#allTitle").html("My Documents");
$("#navPane").html("<li><div id='allNav'><a href='#'>~All</a></div></li><li><div id='photoNav'><a href='#'>~Photo Gallery</a></div></li><li><div id='docsNav'><strong><a href='#'>~My Documents</a></strong></div></li></ul> ");
<li><div id="allNav"><strong><a href="#">~All</a></strong></div></li>
<li><div id="photoNav"><a href="#">~Photo Gallery</a></div></li>
<li><div id="docsNav"><a href="#">~My Documents</a></div></li>
</div>
When i click on one link, everything works fine. then after that, it no longer works when you click on another link in the nav menu.
here is an example: http://jsfiddle.net/k7p2u/
when you click on a different link, the nav content changes. but when you click on another one, nothing changes anymore.
Similar Messages
-
Rollovers changing content before click
I have a site where I have 6 links with rollovers and an inline frame which will show the content of the page. What I want to happen is when you click on the links the content for that link will appear in the inline frame referencing the content of a CMS page. I have my actions on my rollovers set to link to the inline frame upon click. When it is live on the internet, the content shows in the inline frame when the cursor goes over the mouse instead of when you click it. When the cursor isn't on the link anymore, the content disappears.
Why would that be happening and how can I fix it?
http://www.wwonda.com/EF/home.html
Thanks,
TiffanySounds like you are triggering the event with an onmouseover rather than an
onclick. But I do not see that in your code - in fact, the 4 links on the
left and one of the two across the top do exactly what you say they should
do.
This is a poor way to build a site, in my opinion, however. Note that the
link in the address field stays the same, no matter which link you have
selected. Thus, there is no way to bookmark a page's content.
Murray -
Clicking sound whenever display changes content
Whenever my MBP (Late 2007) 17" HiRes display changes content, the LCD panel emits a clicking sound. I first noticed this problem when I unboxed it in February, but it has gotten significantly worse in the last two weeks or so. White pages seem to elicit louder clicks than black ones, but not by much. Even a paused YouTube video's loading bar updating is enough to cause about 25 dB(A) clicks, and scrolling pages on Firefox, Word, or Preview (or photos in iPhoto, or sound in Pro Tools) makes clicks nearly 35 dB(A) loud. Does anyone know what causes this, or, more to the point, how to make it stop?
Thanks!I too have a late 2007 hi res 17" MBP, and I have never experienced anything like what you describe. Assuming that you have had your Mac less than a year, you are still under warranty. I would recommend calling Apple and bringing it to their attention. If your warranty is about to expire, be sure and get a case number, and consider getting 3 year Applecare. Whatever is wrong and causing the clicking sound should be covered under the warranty. Just in case the clicking might be coming from your hard drive, back up your data and keep it backed up. If the noise is coming from the hard drive, it needs to be evaluated, just in case your hard drive is about to fail.
Good luck! -
Loosing changed contents when used FM REUSE_ALV_GRID_DISPLAY
Hi,
I have used FM REUSE_ALV_GRID_DISPLAY in my program as below.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_repid
i_callback_pf_status_set = c_pf
i_callback_user_command = 'USER_COMMAND'
is_layout = ist_layout "I_CALLBACK_TOP_OF_PAGE = C_TOP
it_fieldcat = ist_fieldcat
TABLES
t_outtab = ist_outtab.
and kept one column editable by setting EDIT = 'X' and INPUT = 'X' for one column in ist_fieldcat.
Now if user changes contents of a cell in this editable column and clicks on any toolbar button, then changed contetns are not received in USER_COMMAND routine.
But if user changes the contents of a cell in this editable column and then double-clicks anywhere inside the ALV grid, then changed contents are received in USER_COMMAND routine.
I dont want to loose the changed contents of ALV grid, can anybody help in this.
Thanks in advance.
Regards,
DhirajIn your USER_COMMAND form check the SY-UCOMM for button which you have pressed may be you have used '&IC1' (for double click)
provide your Form USER_COMMAND code here.
Kanagaraja L -
Change content in adobe forms of Print Preview in Appointment screen
Hi ,
I have a requirement in which I have to change content of adobe forms which comes after clicking on Print Preview in Appointment screen,
I am new to Smart forms and Adobe forms , request expert suggestion onto this.
Thanks.Try opening in Chrome or Firefox and inspecting the elements. You can turn easily locate the CSS that's driving the background and experiment with settings. You get there by right clicking on an element and select Inspect Element from the options. It's much easier than trying to go through all of that HTML code without a style sheet to go along with it.
-
How do you change to single click to open files and folders?
How do you change from double clicking a file/folder, to single clicking (web style)?
Finder > Preferences
Turn it off it irks you. I find it exceedingly useful. -
can someone help me with changing content in an array. The index will be specified by the user entering the index number.
eg
Enter the item number to Change
1
Then I need to replace the data in this index with new data.
I am very new to java so I am sorry if this seems like a stupid questions. Your help is much appreciated.
thankspublic void modifyIt(String[] myArray){
System.out.println("Which index?");
int index = readResponse() //read in response somehow
System.out.println("Whats the new data?");
String data = readResponse() // read in response
myArray[index] = data;
} -
How to change content-type in receiver mail adapter
Hi,
I have receiver mail adapter for sending XML file as attachment in the mail. My partner expects to receive mail with content-type: text/xml, but XI sends Content-Type: application/xml. Please advise how I can change content-type to text/xml.
Thank you
Levhi,
try MessageTransformBean
Transform.ContentType
http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm
also shown in my blog:
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
Cannot auto size columns in iTunes 10.4. Columns are all mixed up with headings I have never seen. Cannot change by right clicking on columns. Cannot order albums alphabetically by double clicking on heading.
Very many thanks to you, Putaro! Your answer provided the solution. It was a buggy plug-in that turned out to be the culprit.
You're off the hook, Apple, and my apologies for stating that you let a dog run loose. You skated by this time, Apple. But I'm watching you.
But again, Putaro's reference to the plugins I had installed over the years turned out to illuminate the problem. I have several plugins in my iTunes plugins folder, pretty much all designed to add more visualizer functionality. I removed all of them, and ALL of the problems I noted in my post went away, with full iTunes functionality restored.
I began adding the plugins back to hopefully single out the culprit. Among the ones I had been using included fielder, G-Force, Timestrech, volcanokit, QuartzComposer, and Jax. I hadn't used any of them in a while - probably at least a verison or more back in iTunes updates, but iTunes continued to work with all of them installed. Currently, only QuartzComposer continues to work in iTunes 10.4. The rest no longer even show up as visualizer opitons, with one exception. Jax does show up, but does not work. AND THE PRESENCE OF JAX IS WHAT KILLED MY ITUNES.
I looked into it and went back to the developer, and it appears that they discontinued developing Jax some time ago - evidently, it was buggy and crash prone. I remember after buying it, having problems with it - having never worked to its touted potential, but I didn't pursue it, and never uninstalled it. Leaving it in there caused all iTunes functionality to cease with the iTunes 10.4 update.
If you've got Jax installed, consider removing it before updating to iTunes 10.4.
My iTunes is now working right as rain, thanks again to Putaro!
-Jon -
Change content-disposition in email attachment
I am using apex_mail (in Apex 4.1) to send emails with an attachment.
v_mail_id := apex_mail.send(
p_to => '[email protected]'
...etc...
apex_mail.add_attachment( p_mail_id => v_mail_id
,p_attachment => v_image
,p_filename => 'signature.jpg'
,p_mime_type => 'image/jpeg');
Apex creates this as an attachment:
Content-Disposition: attachment;
I would like to change it to inline:
Content-Disposition: inline;
so I can reference it in my email body with <img src="cid:signature.jpg"/>. Well... I hope it is going to be shown inline anyway if I change Content-Disposition.
Currently (with Content-Disposition: attachment;) it works for Outlook, but, for instance, not in Gmail in the browser. Gmail shows the image separately as an attachment.
Is there a way to change the content-disposition with Apex?
I know it is possible to do it with utl_mail, but this is currently not installed in our databases. I need to involve our DBA to set this up, and I don't know if he is willing to do that.Hi Joel,
I thought so. I will put this in the Apex feature request database.
Ino
BTW, for other people it might be interesting to know that there is another option I tried that doesn't work in many situations either. You can put this in the email body:
<img src="data:image/jpeg;base64,'||v_image_base64||'"/>
where v_image_base64 is the base64 encoded jpg image.
From my experiments the inline attachment with a cid reference seems to work best. -
Accept all editions and changes with one click in a PDF document
In Adobe Acrobat (7.09) I see how to accept changes in a PDF document individually, but is is possible to accept all editions and changes with one click, as it is in Word for example. For tips thanks in advance.
Hi,
To save usernames/passwords, you may have to make sure that '''Remember passwords for sites''' is still enabled in '''Tools''' ('''Alt''' + '''T''') > '''Options''' > '''Security''' while at the same time in the '''Privacy''' tab, '''Never remember history''' or '''Always use Private Browsing''' shouldn't be enabled and if '''Settings''' is visible here, make sure that '''Saved Passwords''' is not enabled (ticked).
[https://support.mozilla.org/en-US/kb/Options%20window%20-%20Security%20panel?as=u Security panel]
[https://support.mozilla.org/en-US/kb/Options%20window%20-%20Privacy%20panel?as=u Privacy panel] -
How to change Content-Transfer-Encoding for mail sending
Hello Experts,
I need to send some documents through mail which i am doing with the help of cl_output_service=>document_output method. Mail is been send succesfully.
But in the payload content which got from Exchange server:
X-Mailer: SAP Web Application Server 7.10
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Can any one help me, how i can change Content-Transfer-Encoding field to some other format which is not 'quoted-printable'.
Thanks & Regards,
DheerajDo you documents contain an XML Declaration like this at the top?
<?xml version="1.0" encoding="ISO-8859-2"?>
If not, then they need to. The XML 1.0 specification says that if an XML declaration is not present, the processor must default to assume its in UTF-8 encoding. -
How to change content type from Document set to Item
While creating content type I've selected Item as a parent but after created I can see its showing Document Set as a parent content type. Now can anyone please suggest if possible I can change the parent content type from Document Set to Item.
Hi,
From your description, I know you want to change content type’s parent after creating it.
There is no OOB method to change content type’s parent after you create it. If current content type has not been used, you could delete it and recreate it with your desired base type. Here are similar cases:
http://sharepoint.stackexchange.com/questions/16131/change-base-content-type-of-content-type
https://social.technet.microsoft.com/Forums/sharepoint/en-US/b976f17e-99b5-42bb-bc82-8d4123a625cf/change-the-parent-of-a-content-type.
This article may help you understand the relationship of Content type inheritance:
https://support.office.com/en-au/article/Create-and-edit-content-types-3d5d45af-608d-4183-8d51-073095fe0312#__toc239159103.
Best Regards
Vincent Han
TechNet Community Support -
Hello,
I want to know is there any way by which i can change content of pdf.
please tell methanks..
I have done that. using iText it is helpfull.
Still there is a bit of problem.
When I open the file adobe pdf is unable to open the file .
where are foxyplayer can view it correctly with edited content so please can you
show me possible changes to do so. -
It takes 1 min to change pages after clicking on and the ferris wheel just turns and turns forever
Why does it take 1 min or longer to change screens after clicking on one.?
What year, screen size, CPU speed and amount of RAM installed?
How full is your Mac's hard drive?
How many applications do you run simultaneously in the background while working in another application?
Do you run any antivirus software on your Mac? Antivirus software can slow down the normal operation of OS X.
Do you run any "crapware" like Mackeeper or any other type of "crapware" like so called hard drive "cleaning" apps?
Have you downloaded and installed anything from the Internet, recently?
Also, so I cover all of the bases from now on, your iMac's hard may, possibly, be failing.
Maybe you are looking for
-
FCP and iMovie HD not seeing HDV video
On my work dual G5 I can control my Sony HDV camera with either iMovie HD 6.03 or FCP 5.04, but neither see the video. The fact that the machine control works proves that the Firewire cabling is ok, and the fact that the video shows up in iMovie on m
-
Hi I'm currently using an ABAP report to generate leave forfeiture messages per employee. The generated messages must then be written to IT0128 to display on the employees payslip. I can't use the ST text through "SO10" cause each message is unique p
-
Identifying message id based on TID
HI, I want to find out message id based on a TID. I mean i want to get the message id for a particular TID. Is there any transaction that can display? Iam using IDX5,giving the Transactionid but unable to get the message id to see the message conten
-
Trying to place one item over the top of another
I am using DW CS3 and I am trying to create a banner (of pictures) and over the top of that I want text-only logo to appear above and drop down to overlap the top of the pictures. I'm sure there is some easy way to do this, but everything I try doesn
-
Error Lifecycle planning Basic settings
Hi Gurus i got an error when iam creating Life cycle planning Basic settings Error Detail Message- Analysis of the lifecycle planning customizing setting errors have been found in your customizing settings. The Basic settings cannot be saved Characte