Tagged Questions
0
votes
0answers
73 views
Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive
This is my first assignment of file sharing.
Need is to share files from our website to above mentioned locations.
Currently, I have been exploring each service’s API for file sharing.
Question 1:
...
0
votes
1answer
40 views
create HTML snippet with jQuery for uinversal inclusion
I've to create a HTML/JS snippet which will be included in different WP installations as part of a post. I need some jQuery functions so I have to check if jQuery is already included and if it's not ...
0
votes
4answers
39 views
Replace a link with text content from other a link – abstracting code
So I have a function where the text of one div replaces another,
I got the code working fine, however I wonder if there is a nice dynamic way to abstract the code so I get a shorter snippet, and thus ...
0
votes
2answers
181 views
jQuery is Commenting out my PHP Code Snippets
I'm building a code snippet system and am using jQuery to display the editor. I noticed jQuery likes to comment out any inline PHP code. Is there a way to prevent this from happening:
<textarea ...
0
votes
1answer
638 views
Jquery in firebug
Having a persistent problem with Jquery in firebug...frequently I'll type some
JQuery statement into the firebug console and it won't work, I'll try to load a
JQuery Object into a variable and will ...
2
votes
2answers
197 views
HTML snippet returned in $.ajax can't be traversed
I have a html snippet like this:
<h1>Lorem ipsum dolor</h1>
<p>Euismod tollam impedit</p>
When I fetch it via jQuery's ajax() method like this:
$.ajax({
url: ...
1
vote
1answer
2k views
How to create a JQuery UI Dialog to display a HTML code snippet?
Typically, the text to display for a JQuery Dialog is put in a hidden div, and then called with $("#cs0").dialog();.
However, if the text to display is HTML code, such as:
<div id="cs0">
...
0
votes
5answers
4k views
How would I convert HTML into text using jQuery?
I would like to make it so that the children of any element with the "snippet" class are read as text instead of HTML. I am aware that to do this, I would need to change the < and > signs so ...
3
votes
2answers
814 views
NETBEANS custom code folds
I am confused why netbeans in version 7 still doesn't support jQuery... specially for code folding...
I have code snippets like this...
$('#something').click(function(e)){
....
});
and of ...
0
votes
1answer
278 views
“Snippet” jQuery Plugin cannot be called twice on the same element
Well, I am building an online source code editor and I use Snippet, a jQuery Plugin to make the highlighting. So, for now I have a textarea and a pre element, where I copy the textarea 's value to pre ...