Add a reference to a .js file in a javascript file?
What is the correct syntax for adding an external reference to a JavaScript file (.js) within another JavaScript file? ...
What is the correct syntax for adding an external reference to a JavaScript file (.js) within another JavaScript file? ...
I have four pages on the main part of the website I am working on, and I want the switching between the 4 tabs to be a fading transition (using jQuery), that's all fine and dandy but I also want SEO to think of each as a separate page, I also want to be able to link to a URL and for it to pull up the right content, even though it is tech...
Hi, I want to add an element to a textNode. For example: I have a function that search for a string within element's textNode. When I find it, I want to replace with a HTML element. Is there some standard for that? Thank you. ...
I once read about the import() and export() functions and how they relate to frames and that sort of depreciated practices. But i'm wondering if there's any practical use case for these functions on the client side. Has anybody put import() and export() to use in an interesting way on the browser? Is there a practical usage with say...
I would like to put an ajax call within a function since I use it repeatedly in multiple locations. I want a manipulated version of the response returned. Here's what I'm trying to do (greatly simplified). a = getAjax(); $('body').append('<div>'+a+'</div>'); function getAjax() { $.ajax({ type: "GET", url: 'someURL', success...
I would like to pick some of your brains on this matter... I've got a large form where there are a lot of multiple selection choices. Some are radio groups and yet others are "select all that apply" checkbox groups. I'm trying to figure out the best way to translate each of these selections within my XML tree to send to the SQL server....
Top: IE8 Bottom: IE7 How do you fix IE7 so it doesn't split my anchor into two pieces? I know display:block and float:left would solve this, but I'd rather have it be inline. This way, I can have text both to the left and right of any arbitrarily placed anchor button. #launchChrome { font-weight: bold; text-decor...
Is it possible to do at all..? The goal of this is to load a heavy Flash movie, after the images, text, and contents of my page is finished loading... Any solutions..? More details: The Flash movie (a music mp3) is loaded in a frame (menuFrame) with the menu. The content (that needs to be loaded first) is in another frame (contentFra...
When using a javascript framework such as jquery, is there a realy chance of overusing the library for things that can be done simple using plain old javascript. If so, then does this type of thing: A: Slow code down B: Make code less portable C: Make the programmer less knwoledgeable about what is actually going on underneath everythi...
I currently have the following JavaScript function that will take current URL and concatenate it to another site URL to route it to the appropriate feedback group: function sendFeedback() { url = window.location.href; newwin = window.open('http://www.anothersite.com/home/feedback/?s=' + url, 'Feedback'); } Not sure if this is ...
Hi, I want to create a beep on server error in a webpage. I have searched and read the pages below on to display sound on webpage. http://www.phon.ucl.ac.uk/home/mark/audio/play.htm But i can't ask users to install plug ins and other stuff. I need to generate two beep on PC speaker. I have tried to use System.out.print("\\007"); and To...
i have a simple little form <form id="loginform"> <input id="myinput" type="text" /> <input name="submit" value="go" type="submit" /></form> in a very not secure way i want it to go to different urls depending on the input value. here is my simple little jquery script that i am sure could be written more succinctly. (feel free to hel...
I am storing values in my session in one of my AJAX calls. The session is getting overwritten correctly. But when I make some other call (AJAX or non-AJAX), the session value is lost. This doesn't happen every time but in most of the cases. My security level is on medium already. here is the controller function and the view : http://bi...
I am working on a site server side that has uses XML to get data. The path to the XML I need is something like "/image/user/username/" I need to get the XML file from that resulting link using something like <script type="text/javascript"> imagesByUser('/../image/user/{{ user.username }}/') I know that the link is working becaus...
I am wondering what best practices are for providing dynamic content in lightweight, 'drop in' widget style that can be used by third party content editors. To elaborate, we would like to give third parties the ability to show dynamic content from us on their website without a back end system integration where they would have to call ...
I'm working on a touch panel web page (for my home automation) that is going to run on both the iPad and the iPhone. What I'm wondering about is the ability to dynamically set the size of my touch icons based on the screen size. If I'm on the iPad, I need the icons to be 150px by 150px, but if I'm on the iPhone, I need the icons to be ...
I'm using JavaScript to inflate a span of left-aligned text until it fills its container, or until it reaches variable thresholds in either height or width. This process results in a widely varying font-size. My problem is that, with certain characters, there is a small amount of padding on the left... and while normally it's not notic...
This function wont return any value, even though the ajax call goes through correctly Function: function queryData(request) { var ret = null; $.ajax({ url: 'ajax.php', data: 'requestdata='+request, dataType: 'json', type: 'post', success: function (j) { if(j.ok == true) ...
Goal When the user clicks an element (with class="menu"), the default action should not be executed. The user should be presented with a menu with options. When an option has been clicked, then the default action should be executed. Problem It's very problematic to stop the original click event in the first place, because it seems imp...
Form is not working, does not post to the database though the CFC or seem to be working with the script. When you click on the PostComment button nothing happens. I just spent a day and tried many, many different things. Different buttons and different code, some made things worse and most just cased errors or refreshed the page. I’m not...