|
I have a page setup that uses jQuery + AJAX to load content into an accordion frame. It works fine for loading straight text/HTML but I now need to load Javascript along with the HTML.
To elaborate, I'm using GalleryView to display images in a photo gallery...
Started by panas on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
JQuery:
$....
The plugin will detect when the content is loaded in and execute the code .
In your original or "master" file that the other content is being loaded into, you bind your code to those elements being loaded in .
You can use the LiveQuery plugin.
|
|
The intent is to use an html dialog box as a settings page for a program. In this settings page, the user can create a list of salespeople that can be selected later on from a drop-down box. My goal now, is to add a checkbox that indicates witch salesperson...
Started by Eric Hunt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I figured out how to limit their choices....
Why not simply use a drop-down box, which only allows the user to select one of the sales people? This will greatly simplify the JavaScript as you will only need code to update the sales people in the drop down .
|
|
Hi there, I've gotten the FB JS client library to work on my iframe-based application (cool stuff, I must say), but now I'd like to retrieve a list of friends from Facebook, in order to populate an AutoComplete field (similar to the friend-selector), ...
Started by btelles on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
<script src="http://static....
Do a quicks search and see if you can find something .
JS, not PHP, Java, etc.), make be well-written JS code / plugins that you could use.
What you'll need to do:
If you're strictly on the client side (i.e .
|
Ask your Facebook Friends
|
Now that JavaScript libraries like jQuery are more popular than ever, .js files are starting to contain more and more of a site's logic. How and where it pulls data/information from, how that info is processed, etc. This isn't necessarily a bad thing,...
Started by Alec on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Apache's ModRewrite, it's possible....
But if it can do about whether it was possible to detect if a request for a .js file comes from the site itself e.g.
There are applications or tricks to convert your normal .js file to one long string.
|
|
I hae a link like ( domain.com/jsapi?key=123456 )
hov can i get this "key" into my JS code? i use jQuery and i don't know about its are easy way to get this "key" into JS variable.
tanks for all.
Started by NeoNmaN on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
An array in the "splitted" variable, it's second element (at the id 1) containing the value.
|
|
I am building a menu in HTML/CSS/JS and I need a way to prevent the text in the menu from being highlighted when double-clicked on. I need a way to pass the id's of several divs into a function and have highlighting turned off within them.
So when the...
Started by ChrisTek on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You could:
Give it ("it" being your text) a onclick event First click sets a variable to the current time Second click checks to see if that variable is x time from the current, current time (so a double click over, for example, 500ms, doesn't register... .
|
|
Now I know that you can use OOP and MVC to organize, but that is just for PHP.
Let's say, I add a new window that pops up when a user clicks on a link and it displays a form with JS validations and it is CSS styled.
Here we got 4 codes: JS, CSS, PHP and...
Started by noname on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I use a class on the body tag....
For JS, CSS, PHP, etc that would contain code that could be used across different windows) then a subfolder in there called media, in which I put a css folder, a js folder an img folder, a swf folder.
|
|
Using VS2008 and ASP.NET 3.5 (or VS 2010 / .NET 4.0?), how can I include a bit of dynamic ASP.NET server-side code in mostly-static JavaScript and CSS files?
I want to do this to avoid cloning entire JS or CSS files to vary just a small part of them multi...
Started by Justin Grant on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The master page then renders a dynamic JSON object that holds these values so that static js files could reference these dynamic values.....
I needed to have my js popup login dialog box support localization.
In the footer of each page.
|
|
Hi,
I know this has been asked before, but I've found a different way to get references to controls in external JS files but I'm not sure how this would go down in terms of overall speed.
My code is
public static void GenerateClientIDs(Page page, params...
Started by Vince on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
It generates a JSON object ( example ) containing server IDs.
Something like Guffa's answer).
|
|
Hello,
I'm running into a character encoding issue when I load a dropdown using jQuery from an external js file. This only seems to happen when the JavaScript object is not within the page.
For example the below is the JavaScript object.
var langs = [...
Started by Quest4Denali on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Is it possible your server might be serving .js files with a bad Content-Type header containing a wrong charset? A combination of unset mime-types for JS plus AddDefaultCharset in....
Like Mobile Safari doesn't understand it, though.
|