HTML Source Code
Mar 22, 2006
I've a problem: I need to retrieve (in javascript) the soure HTML code
from a url without loading the page then put the HTML source code in a
string variable to manipulate it. From this variable I need to get all
the links to perform some operations.
View 4 Replies
ADVERTISEMENT
Jul 24, 2008
how can i write the sourcecode of the page to a textarea?i thought about something like
Code:
function dump()
{
[code]....
View 14 Replies
View Related
May 8, 2010
View source code of external files in html like *.js and *.css
For example:
In this page I am Posting to, there are 24 *.js files. They are loaded but you can't see them. I would like to view some of these external javascript files for study. Not necessarily on this site, but where ever I find them.
View 1 Replies
View Related
Jun 3, 2009
Why isn't this code working? I can add items but only remove the ones originally added in the source code, not the ones dynamically added.
<form><div class="list">
<div class="item">
<input type="text" value="" /> <a href=""class="removeitem">Remove this item</a>
</div><div class="item">
<input type="text" value="" /> <a href=""
class="removeitem">Remove this item</a>
</div><a href="" class="additem">Add item to list</a>
</div></form>
<script type="text/javascript">
// Add item to list
$('.additem').click(function(){
var template = $($(this).prev().get(0)).clone();
template.insertBefore($(this));
return false;
});
// Remove item from list
$('.removeitem').click(function(){
$(this).prev().parent().remove();
return false;
});
</script>
View 2 Replies
View Related
Oct 26, 2009
I'm new to js/jquery and this forum so please forgive my potentially off-scope js/jquery remarks. I've been running a lot of toggles to show, hide, etc... divs and other HTML elements. It's making my application incredibly nice navigation wise.
Now to put myself in my users shoes. Say one user toggles on and off the things they want and don't want until they are satisfied with all the content of the screen. (That is by the way the nature of my application. A user loads in various variables via PHP and other means and when satisfied, a PDF is generated for them containing all their preferred content.)
Because: When a user is at a point where all the content they are viewing is worthy of a PDF, it is also worth saving that HTML 'view' (classes switched, variable adjusted, etc...). I would call it 'Save this workspace' or something along those lines.
I don't have a direct question per se but am more interested in the views of others who have similar thoughts and moreover, what relationship has jQuery had in helping employing some method?
View 4 Replies
View Related
Sep 13, 2010
I'm not exactly sure as to whether this question should be posted here or on the php forum, but I think it mainly has to do with fancybox's zoom feature. My problem is this.
I'm doing SEO for an already established site and this site has a features area with about three different options that use the fancybox zoom script. These boxes all contain pertinent information (SEO heavy) about each option as well as links to different sites. All of the info displayed is pulled from a database via php.
I would like to be able to display the descriptions as searchable content, and be able to track how many people click on the external links, but as it is now none of this shows up on the source code. The fancybox zoom feature seems to open up another window within my main page.
My question is this. Is there anyway that I can retain fancybox and get the content to come up under the source code? Or does this maybe even sound like an unusual effect from fancybox.
I can send some code later, if anyone needs it. I just didn't want to throw everything in here all at once, because it's quite a bit of code involved.
View 4 Replies
View Related
Feb 23, 2011
I got some code that loads divs from other web pages into a particular div in my main page. In other words, I click on a button, and this tells jquery to load afragment of a particular page into my main page. For instance if I have 5 web pages onrock stars, I could have 5 buttons, and each button could load one rockstar's biography into a div on the main page (and replace whatever was there before). This works, and I do see the content that it loaded. But when I do 'view source' in IE, I do not see that content (the bio of the rock star). Another clue that this content is not really there, is when I try and run some code on that content. The content (from those external pages) have divs with specific names, and I try and make them into collapsible panels by running the following short function:
var IdentifyPanels = function() {
$("DIV.ContainerPanel > DIV.collapsePanelHeader > DIV.ArrowExpand").toggle(
function() {
[code]....
View 2 Replies
View Related
Jan 29, 2009
i am doing project where i need to convert recorded voice to text format means that i can convert mp3 or wav to text
View 1 Replies
View Related
Jul 23, 2005
It's possible to protect the source code of a js file? With PHP?
View 15 Replies
View Related
Oct 6, 2004
"No right-click" scripts only end up annoying the users... Is it possible to hide the source code..... without showing the JavaScript source!!!!!
View 14 Replies
View Related
Sep 20, 2006
On most EVERY commercial site (including the pages on comp.lang.javascript) I find the following code, word for word.
<script language="JavaScript">
<!--
function SymError()
{
return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
Is this some "standard" code that every Web page should have. Does it
control the opening of new windows when a user clicks on a newsgroup
message.
View 2 Replies
View Related
Apr 19, 2009
Is there a function in javascript to get the source code of a page and contain it in a variable, or automatically obtain information from it in some way?For example, if I needed to get the title of a certain page, would I be able to somehow implement document.title to get the title of a webpage?
View 4 Replies
View Related
Sep 16, 2009
I made a table that retrieves some Data from the Database also I did some calculations for this data using Javascript and It works fine , but I can't see the calculated values in the source code. That's the Problem , cause I can't print it or export it without these values and the source code doesnt show it. So , what can I do , to view the generated values from JS in the source code? I'm using IE 6 only as a web browser and the Javascript Calculations are functions and Classes in a seperated file and I linked it to the Report page ...
View 2 Replies
View Related
Nov 15, 2009
I have a e-mail on my myspace account and I didn't write it. How can I find out the IP addresse from where it originated? I have looked at it and looked at it but I can't find anything except my myspace account addresse on it. I want to know basically where to look to find out the computer or IP addresse that it originated from.
View 1 Replies
View Related
Aug 15, 2010
How do I create a JavaScript script to save a web page's source code to a file?
Example: I will go to a website, it automatically from the web page's source code will be saved to a file.
View 4 Replies
View Related
Jun 27, 2006
I would you grab the source code from an IFRAME and display it in a textarea?
I'm trying to create a sort of preview page that both shows a rendered page, then shows the source code next to it.
[edit]: I'm thinking that using OnLoad JS event in the HTML body tag would allow this to work. The page loads, the OnLoad event calls a JS function that pulls the innerHTML from the IFRAME and inserts it into the textarea.
View 4 Replies
View Related
May 17, 2011
I'm wondering, I've looked at several examples of this, but none seem to work. I can get POST functions to work (posting data to a certain URL is no problem). However, I can't get the source code of a page. Here's the function I've got so far:
Code:
I'm wanting to use this to use certain settings in the script on my web site that I have stored on another page. The usage is like this:
Code:
And then googlesource should be populated with the source code of [url]. Just an example. why the above function is not working? I've tried messing around with all kinds of request headers and everything.
All the function returns is "undefined".
View 5 Replies
View Related
Oct 6, 2011
I have a good HTML markup parsing function which uses DOM methods to create element nodes with attributes and contained text nodes. But for some reason I am having difficulty getting the event handler attribute value (which is javascript code) converted to actual source.
[Code]...
But when I click on the button in Firefox, nothing happens. Using a Javascript debugger, the trace doesn't even enter the handler code, which effectively means the event listener has no script.
So converting the code-as-string to code-as-source using the Function constructor is not working. Or else the event handler setting function or assignment is not what it should be.
View 7 Replies
View Related
Jun 26, 2011
Is it possible to get a websites source code using ajax?
View 1 Replies
View Related
May 28, 2009
Ok I made a post yesterday for a calculations script and I figured it out.Now the problem I have is as soon as I put it on my website a competitor is going to steal the code and put it on his/her/their page.Is there a way that I can put in my html a call to the javascript so that it just gets the script runs it and then displays it to my page without actually having the source displayable anywhere? Here is the code I made that I want to protect:
Code:
<html>
<head>
<script type="text/javascript">[code].....
View 13 Replies
View Related
Aug 25, 2011
I am using fadein and out of jquery, but size of jquery file is high for me. so i should replace it.do anyone know, how can i write fadein and fadeout functions? is anyone know its source code?
View 3 Replies
View Related
Mar 11, 2009
I have a small script that creates and removes elements from an html form. This script also renames some elements upon deletion of another element. But this does not seem to be working properly. The problem is that i can't really figure it out so i was wondering if there is a way to see the source code that is created by JavaScript,in order to track down where the problem is.
function removeDiv(divNum){
var container = document.getElementById("container");
var removedID = document.getElementById("div" + divNum);
container.removeChild(removedID);[code]....
// the code below works if i delete the "for" above, and doesn't work if the "for" is there. specifically, if the added elements are 5 or more and i delete the last one, the value of y remains the same. if i delete the first or one in he middle, it works. if i delete the last and reduce the elements to 1,then add another 5 and delete the last one (as it would not work initially) it works!
var y = parseInt(document.getElementById("totalElements").value);
document.getElementById("totalElements").value = y - 1;
}
<input type="hidden" name="totalElements" />
The value of totalElements increases every time an element is added and this works well.
View 3 Replies
View Related
Nov 24, 2010
Adding a new plugin page only has Project resources section which only has links to refer.Is there any way by which I can just attach/upload my plugin source code instead of linking to some website?
View 1 Replies
View Related
Apr 13, 2009
After lot of research I found that its impossible to disassemble the source code view in the window toolbar.. but finally I found this site that have the function that I am describing..
Start addy here:
mortgagecalculators.ws
/
mortgage-payment-calculator
.
php
End of addy:
The address is separated in pieces because I cant post links and don't forget to include the extension php with the dot at the end of the address but note that if you click on the back history button and then the forward. The java does not work. I get into the source looking for some java call... but nothing found related to security disable source code...
View 14 Replies
View Related
Nov 28, 2003
are there any scripts on the web that could disable visitors from viewing my web source code? (can java script do this? if not any recommendations?)
View 14 Replies
View Related
Feb 18, 2010
Does anybody have regex engine source code? Any link on javascript engine. Really interesting to look at.
View 1 Replies
View Related