Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
zugdav
zugdav's Profile
3
Posts
2
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
Read an external html file and put the content in a variable
[3Replies]
15-Jul-2011 09:05 AM
Forum:
Using jQuery
Hi to all, I trying to get an html page using the $.get method and assign the result to a variable, using this code:
var html;
$.get('templates/Template.html', function(data) {
html=data;
});
console.log(html);
html variable, in this case, is null...
If I do:
html = $.get('templates/suggestItemTemplate.html', function(data) {
});
html is a object with the property
responseText
wich contain the html code of the html page.
How can I get this value? Wich is the correct system to retrieve the html from a external file and put it in a variable?
Thanks,
David
Get an external html file with $.get and assign its content to a variable
[2Replies]
15-Jul-2011 05:15 AM
Forum:
Using jQuery
Hi to all,
I have this code:
var html = $.get('templates/Template.html', function(html) {
});
console.log(html);
The
object
returned,
html
, have the property response, wich contain the html of page Template.html
In firebug I see that the property
responseText
have all the html of the page, but... how can I get this value?
I have try with:
html.responseText
but is null.... :-(
some suggests? Thanks, David
Get radio button value after jquery-mobile theming
[3Replies]
14-Jul-2011 06:38 AM
Forum:
jQuery Mobile
Hi to all,
I use this code for intercept a radio-button click:
$('#radio-1').live('click', function(){
console.log("Clicked!");
});
This work correctly if I add the
data-role="none"
at the input field:
<input type="radio" name="radio-1" id="radio-1" value="1" data-role="none" />
but, so, I haven't the jQueryMobile theming applied...
I don't undertand this behavior: there is a system for resolve this problem?
thanks,
David
«Prev
Next »
Moderate user : zugdav
Forum