I have a website running in .net, that has a load of these in the <head section of the default.aspx page, which bumps the page size up to 371kb. However, many of these are only used in one 'skin', or page in the system. Is there any way I can put these scripts elsewhere, so they are only loaded when they are needed. Then every webpage will not have to be so enormous?
I've been asked to pack a very simple javascript function that resides in the <headsection of a page. I have the function working the way I want, but when I pack it using this packer:
I have a webpage which allows the user to select the content they would like to display using ajax to do this. the problem i have is that one display option is a file tree which only works when loaded in the head section.
The following code is loaded in the head section:
Cannot figure out whether or not i can adjust the code to load only when the ajax call to the file tree is made.
to load a CSS file should the browser not be JS capable. Only in IE 7 will this not render and I'm going bonkers trying to figure it out. After searching a bit I ensured no ID and NAMEs were similar and I don't think it's a hasLayout bug.
When you load part of pageB with ajax into pageA, what happen with the head section (title, meta, css link and script link...)
I mean, what is the best practice when you insert into the DOM a part of pageB with all the code (title, meta, etc...) that is associated with pageB. (initially i was inserting the whole pageB because of "gracefull degradation", but this inserts the whole pageB DOM into the pageA DOM).
I came up with some code to load javascript files dynamically. But I've got problems..
When the script element is dynamically added to the head section of html, i think that the document.ready event fires once again and therefore the code sort of runs twice.
In the html page I call this method:
In the script test.js I have the function SayHi():
The SayHi method never gets called and alert('begin') & alert('getScript') get called twice in this sequence:begin begin getScript getScript.
This is the regular expression I currently have /^(w+|w+.w+)@(w+|w+-w+).(w{2,3}|w{2,3}.w{2,3})$/; The script dates from about 2006. The script is ok for emails that just contain a "dot" before the @, as in: joe.bloggs@home.com
What needs to be changed in the above script to allow both these types of email? joe.bloggs@home.com and joe.bloggs-smith@home.com
i want to add the link address when clicked on the link in web page to the outlook express address book when the outlook window populates. i tried to put
<a href="mailto:enquiry@mydomain.com" > click here </a>
but it only add address to the To section of outlook window, i want it should store the address in the address book.. of outlook express..
as you can see the items hide/show on click using a simple jQuery toggle. My question is, is it possible to link to my website with one section already expanded from an external source. I hope this question makes sense. Iv tried and failed by linking to the div id using #link but cant get that to work.
Anyone know how I can change the color of a text link on a page that doesn't load a new page, but rather stays on the same page?The nav links already use an onClick to present content below it that changes depending on what link in the nav I select. In other words, there's already two things going on -- links take you to content on the same page using a JS onClick.What I want to add to that is when you click on the link, it changes style, like turns bold or changes color. So then the user knows that not only have they selected new content, but the link they selected stands out as well.
I know this can be done with media-queries in CSS3, After attaching the jQuery library, I used js to get the width of the window browser-viewport) and store that in a variable.
What I was aiming to do was write a <title></title> for the page and attach a stylesheet through <link /> using js only when the window's height was greater than 596px. So, I wrote the following:
How to make an image map link to another page AND open a specific accordion section?I guess I need a script that knows which area of the image map was clicked and not only navigate to page 2 but opens the section via slide toggle I need it too.Here is the the page with the image map (although image map version not upload yet so I have what will be uploaded below)[URL] ...and the page I need to navigate to based on the area of the image map clicked and also slidetoggling the div I need it [URL] Here is the image map:
My company has 2 email apps. One for external (MS Outlook) and one for internal (GroupWise). On my Intranet, I need to connect the mailto tags to the internal system. Does anyone know how to do this? I can't make GroupWise everyone's default email program because many people use both frequently. I would greatly appreciate any help or direction.
I'm hiding the email address on a website with this javascript which works fine: --------------------------------- <p>Send your comments and questions to our <script language=javascript> <!-- var contact = "Newsletter Editor" var email = "news" var emailHost = "netmechanic.com" document.write("<a href=" + "mail" + "to:" + email + "@" + emailHost+">" + contact + "</a>" + ".") //--> </script> </p> --------------------------------- How can I make an image instead of the text as a link to start thisscript?
I have a main menu at the top of each page of my site and on one single page a Coda Slider. To reach each different slide you need just #1. #2 etc from within the Coda page, but to get to it from a different location you need www.sitename/pagename/#1
Now I cant have both versions in the menu. So is there a way to add some script, just to the single Coda Slider page and get it find each of the links (I can add a class to them) and remove the link up to the # tag, so the link would then just be #1 and would correctly use the Coda slider panels.
Is there a way I can read my address bar and write the link to a file. I think it is great that websites post the code I need but the cut and paste thing gets to be a drag. If I am using my browser I am not editing my site. I need a way to save from the http and com. are maybe the part between the two dots.