4 Lines Bring Down $40M NY Times PayWall
Mar 24, 2011See article here: That was quick: Four lines of code is all it takes for The New York Times� paywall to come tumbling down Debbie
View 1 RepliesSee article here: That was quick: Four lines of code is all it takes for The New York Times� paywall to come tumbling down Debbie
View 1 Repliesi'm currently pitching some website development. The majority of this site is behind a paywall (meaning users must pay subscription to view the content). There is much talk about google analytics being used. I can't help but wonder a few things about this:
1) does google analytics function correctly behind a paywall -- i.e., when a session is required for viewing?
2) Does this present any kind of security problems?
I'm imagining that the google analytics script will most definitely load if embedded in a paywalled page. I'm also imagining that such a script could easily parse the content of that page and deliver it to google. Any thoughts on this matter are welcome.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
Is it just extraneous code possibly? It seems to be ok (from right to left) in Firefox 3 but using IE and Opera, it scrolls from btm to top and I cannot figure out why.
I have 4 - 5 <div>'s in my jsp as layers which provides extra information. Can I bring <div> block to front when user clicks on div block.
View 1 Replies View RelatedDoes someone know how can we bring variables from a PHP script to a
Javascript one ?
I have to build a Javascript function that needs variables generated by a
PHP script but i do not know the way to retrieve them into Javascript.
We are having one html file and there is a java script code: "ether.play()" and this will launch one window.But this window is not displaying in the foreground, instead it is hiding in the background.Can anyone tell me how to bring the window to foreground in Javascript.
View 1 Replies View RelatedOk, so I have a vertical expanding menu on my left column. I am using frames and the left column is not wide enough for my submenu.
Is it possible to bring the sub menu across the boarders of frames?
I popup a txt msg queue window - it sits in the background - it reloads the msg queue every minute - when a new one pops into the queue I want to bring window to the front but the following code doesn't do that. Am I doing this right?
function init()
{
document.forms[0].btn_close_window.focus();
}
I am currently working on a calendar memo site for university, and I'm having a small problem. I have some code to validate a date put into a TextBox (day of month only. Month and Year are in drop down menus and are working fine), but whenever I try to click to validate it, I get the following error in Firebug:
QuotedayBox is not defined
And it points me towards the first part of my validation function. The code to get the TextBox displayed is in a Form HTML element and is:
<INPUT TYPE="text" NAME="dayBox" VALUE="date" SIZE="2">
The validation function is:
function validate(calEvent) {
Step 1: Check box is not empty.
if (dayBox.length = "") {
alert("Please enter a date")
[Code]....
The error occurs on the line "if (dayBox.length = "") {", right at the start of the function. It looks like the validate function is not recognising that there is a TextBox in the form called dayBox, but I can't see why.
Is it possible, and if so how, to get the title of a page in an iframe
If the frame is not constant src
An example on this link
[URL]
We find that the Home to take the title from the iframe, which include so
I have a music site, and on one page surfers can click on song titles and it opens up a pop-up window containing the lyrics (I would direct you to it but it is currently down due to domain name troubles).When you click onto the main window again, the pop-up then relegates to the back - if you click on the same link again, you get nothing, unless you closed the pop-up first.How can I modify my javascript so clicking on the pop-up link will bring an already open window to the front?Here is the popup code currently:
Code:
<a href="javascript:void(window.open('rpages/poar/dragofsloth.html','The Drag of Sloth','resizable=1,width=585,height=420,top=60,left=60'))">1. The Drag of Sloth</a>
I have a setup where clicking on one of several spots on the screen shows one of the two forms that are hidden by default. I was wondering if there's a way to scroll the screen so this element is visible. Otherwise I can open below the fold and people will not know that something happened. The elements that I click on are not hyperlinks, jut regular divs. I was wondering if there's some method I overlooked that lets me take the page to a specific element.
View 2 Replies View RelatedI can't seem to get this to work. I have a form here: [URL] When the user hits sumbit, I want it to validate first, and then IF the validation passes, THEN have an alert window come up with an OK button. Why isn't it working? The validate function ends like this:
Code:
}
if (document.form.RefEmail.value=="") {
themessage = themessage + " ";
}
[Code].....
search = "#search=%22" + search + "%22";
globalHTML="<html><head><title>" + formTitle + "</title></head>"+"<frameset><frame src='" + pdfURL + search + "'></frame>"+"</frameset></html>";
This works just fine as my javascript to make a link to a pdf and bring up a search pane in the certain pdf. My question is if anyone has tried to highlight search terms in a pdf just by clicking on the link. I can't seem to get that to happen.
I setup a jquery ajax request to update my sql database... (add a product to shopping cart) then after it completes I want to use .load to re-load the shoppingcart (the cart is currently loaded with php include - so it is it's own seperate .php file). The problem is that when it reloads it doesn't have the "current version" If i refresh the page it's fine..
Example -
<script type="text/javascript">
$(function() {
$("#addtocart").click(function() {
$.ajax({
url: "addtocart.php",
data: **form data here**,
complete: function() { $("#cart").load("cart.php"); }
});
});
});
</script>
<div id="cart">
<? include("cart.php"); ?>
</div>
<button id="addtocart">Add to cart</button>
--
I have also tried to put a variable in front from the $.ajax and then use $("#cart").ajaxComplete(function() { $(this).load("cart.php"); } });
But yet still no luck. How to make ajax load a page after the mysql update has been done then display it?! I used to do this all the time before I started using jquery. When readyState was = 4 { load page code here } it would always work.
I am trying to make the #div2 appear when the cursor moves over the #div1 at the current mouse position. Somehow the #div2 doesn't show up, and I tried to validate the where the #div2 would appear by an alert down in the code.
To my surprise, the alert message said 'auto' instead of the y coordinate of the mouse position.
<html><head>
<style>
#div1
{
[Code].....
Can I use the XMLHttpRequest object to call a url which would generate a PDF and then display it to the screen?
I'm new to AJAX and I'm very interested in using it to asychronously bring back documents with a content-type that IS NOT text/plain or text/html (like a PDF or Excel document) and then display that document to the screen. I have a web application that dynamically generates PDF and Excel documents. A user may have to wait a minute for the new doc to be created and displayed to the user. I want to put an animated notice saying the doc is being generated similar to what you see when you execute a search on a search engine. I've tried using animated gifs (with frames, etc.) but they don't work. As soon as a request is sent for the PDF, the browser halts the gif in IE. If I could instead call the URL that will produce the PDF asynchronously, then I could display the animated gif and call the PDF at the same time. Once the PDF is generated, I want it to then be displayed to the screen.
Is there a best way to reorder a jquery group/array, eg bring one item to the first position? Should you do it with a normal array.sort() or splice(), or is it possible with an internal function map()?
View 2 Replies View RelatedThere are 3 graphics (top left of page) which open a linked page in a pop up window; each popup comes into focus the first time it's opened - clicking on the same graphics again doesn't bring the already opened popups back into focus.I had originally sized each popup as 320x430px in the body at each of the 3 references to the linked pages, but discovered that (in FF portable 3.65.13) the popups all opened full-size windows. In an attempt to resolve this I removed the size info from each of these 3 page references (lines 84, 89, 94) and moved it to the head (line 67) which seems to have resolved the size issue, but works only when I specify the popup to be any size except the original size of 320x430 (e.g. 320x431; I have now settled for 321x431)
View 5 Replies View Relatedprovide me with code to make a collapsible menu? What I'm looking for is a vertical menu, that will open up the sub-categories upon a mouseover. Clicking on the menu item will bring them to the specific page. Oh, and this might not matter, but I'd prefer if I was able to style the menu to fit with my site theme.
View 2 Replies View RelatedI am in position to get the no. of lines in a 'div' and the words in each line inside a div tag. Is this possible to achieve using jquery. I have googled for so many hours but could not find any results related to my requirement.
View 3 Replies View RelatedI want to jQuery to format the following [code]...Wrap new lines with <p> tag
I have read a zillion posts and some that are similar but have not been able to translate them into my problem.
How can the output of the following code be written on separate lines ?
View 3 Replies View RelatedAn interesting way of drawing a line interactively without the need for any plug-ins....
View 6 Replies View RelatedThis would prevent new line on textarea when pressing enter key:
$('#text_description').keypress(function(e) {
if(e.keyCode == 13) { e.preventDefault() }
});
but how to remove lines when pasting into text area?
I'm trying to make a small in page editor and was wondering if there is anyway to add line numbers to my textarea. Does anyone have a solution?
View 1 Replies View Related