Widget That Can Generate HTML And Be Indexed By Bots?
Jan 29, 2010
I came across a document online for distributing content online via Javascript and to test it out I put together a simple JS file that has instructions to build an HTML link inside a div. I can call the function remotely from sites hosted on other servers. This would allow me to change the HTML snippet at any time without having to manually change it on a bunch of sites, I would just need to change it once in the JS file.
[Code]...
View 1 Replies
ADVERTISEMENT
Oct 2, 2011
I am trying to get an external php page to display on any website. What I have is a side button that opens a small new window (an example of which is at my username website.)
What I want to do is place a php page full of dynamic goodies in a way that someone can have that box on their site by just copying code and paste it into their website. The result would be that their website will then have a php page from my server showing up in the box. one they can dynamically control through a database (again on my server, hence the need for a php page from my server) I have tried a different approach using a similar script that when you put two lines of code on the bottom of a remote web page it brings in everything but unless the content is within the same domain the java script will not let the page pull out.
I can not seem to find anything about this. I am not familiar with Iframes but maybe I should look into that.
View 1 Replies
View Related
Feb 25, 2010
Suppose I have an html document with javascript, opened in my web browser. I need my script to generate another html (which just displays some text), and open it in new tab automatically. How is it done? Conside this code:
<html>
<body>
<script type="text/javascript">
[code].....
View 1 Replies
View Related
Apr 21, 2007
I was wondering how people are able to create ajax applications like star ratings scripts without having bots hit the scripts. I have a star rating script on my site which was getting hit by bots. After I put in rel="nofollow" into the link part that cut down on the nice bots but I just started getting hit by some bots again.
I have had a good amount of experience dealing with bots in the past with them sumitting my forms that were open to all visitors. After I created a "What is 1+1" hack as a check on the forms then the problem was solved. But I like my ajax scripts to conform to the ajax philosophy of keeping everything as quick and simple as can be so having confirmation on a star-rating script would be kind of weird. When you look at sites like bash.org with their + and - voting, Craigslist with their flagging, or the tons of sites that now use ajax star-rating scripts I am wondering how they are able to keep bots from contaminating the input? The only thing I can think of is that they ban them totally but this seems like it would be hard.
I should mention that I know about the various ways to deal with bots:
1. site wide - IP banning & robots.txt
2. page specific - meta tags
3. link specific - rel="nofollow"
But the problems are:
1. Site-wide: It would be a pain to constantly ban all non-good bots. Or I am wrong about this?
2. Page specific: For a site that has a couple hundred static PHP pages it would be hard to manage the creation and editing of meta tags.
3. Link specific: This doesn't keep bad bots, and sometimes good bots, from not following the link. (Some people even say the good bots still hit the link but just give it no PageRank, but it doesn't really matter)
View 3 Replies
View Related
May 9, 2010
I'm trying to figure out the best/easiest/fastest way to accomplish this task:
I have a csv file
I need to generate an HTML item description based on the infomation in this csv
Here is an example:
ITEM NAME, ITEM TITLE, MANUFACTURE, CONDITION, LAST PHOTO LINK,
I would then need the script to generate the HTML markup
AND
I will also need the script to determine if the last photo in the list is photo "c" and then create the links for photos a-c
ie:
I'm sure there is a good way to do this I'm just not sure which language will be the easiest to do it in. If there is a way to use java I am most familiar with java.
I would also like the script to export the data in a csv file as well if possible.
View 1 Replies
View Related
Mar 27, 2009
I am a newbie to Javascript and JSP. I wish to create a jsp file to read the inputs from an html (registration form called member.html), check validity of inputs using javascript and finally generate an ouput as an html file displaying the user inputs. Following is the code for the member.html file
<HTML>
<TITLE>New member application form</TITLE>
<script language="JavaScript" src="javaScript.js" type="text/javascript"></script>
<!--<HEAD><H2><P align = "center">Welcome...</P></H2>-->
<H2><P align = "center"> Member Registration Form </p></H2>
</HEAD>
<HR>
<BODY> .....
The error I experience is that nothing happens when I click submit button. I have installed Tomcat 6.0 and do not seem to have issues with that.
View 3 Replies
View Related
Aug 11, 2010
I want to generate dynamic html code via java serlvets.from the class LightServlet
public void getAllLights(HttpServletRequest request,
HttpServletResponse response) throws IOException,
NumberFormatException, InvalidSyntaxException {
[code]....
I think, the problems should be in the jQuery code, because it works with normal strings without any html tags.
View 5 Replies
View Related
Apr 25, 2011
I have the following function to validate a form:
function validateForm()
{
var s1 = document.forms["form1"]["strokes[1]"].value;
[code]....
View 2 Replies
View Related
Jan 29, 2011
I was trying to make a for cycle with indexed IDs, but there is some problem with it. Commented code works ok, but indexed IDs seems with troubles. Here is an example [URL]
View 1 Replies
View Related
Jul 24, 2009
I would like to syndicate content from one website to sections withing many other websites.
So far I've been using iframe but the problem is that the content presented on these websites is not indexed hence does not improve SEO.
A server-side implementation is an option but it requires more time-consuming integration each time the content is changing.
View 2 Replies
View Related
Mar 29, 2011
I have some PHP code that currently works by; creating an array 'values[indexed by ID's of packets]' as the name tag in the form below. (forget the syntax ive removed alot to fit in this post) the important thing to see if Input Types are in a loop at there can be any number of them, the text fields are put in an array which is indexed by $packet['piid']
When the values are posted to my PHP script I can run through the array with the code
This all works, my problem is how would I use JQuery to control the script below to pick up the array <select name="importance[<?php echo $answer['aid']; ?>]"> so that it can be passed to my PHP script?
Each Answer in the loop has a selectmenu so they can choose how important that answer it is to them. They can be of variable length thats why its in a loop.
This is the code I have so far
How can I index each answerID with with a importance value and pass the array to PHP. I dont want to make the array in JQuery, there must be an easier way of passing this? Like in the first example at the top.
View 2 Replies
View Related
Jun 11, 2009
I have a form having a field like the following: <input type="checkbox" name="solicitationBean[0].attemptNo" value="" > how to access this in javascript. I am getting error when I access like this: document.formname.solicitationBean[0].attemptNo
View 2 Replies
View Related
Sep 6, 2004
At work, I'm mucking around with a prototype client using XMLHttpReqest for pulling server data (REST or XML-RPC or SOAP) and I want to now use a JS widget API for building re-usable widgets for use in 'pages'.
I was having a look at DynAPI, but it seems to not be a high enough level for what I want.
Just wondering, has anyone toyed with a high level client JS API for building nice DHTML UI's or can point me to some?
View 2 Replies
View Related
Sep 9, 2005
I have a function (below) which is executed upon the clicking of a
checkbox called 'yeschk'. This function works as expected for FireFox,
i.e., the 4 widgets (nametext, emailtext, addme, and removeme) disable
or enable immediately when the 'yeschk' checkbox is clicked. But in IE,
this doesn't happen immediately. Instead, the mouse has to be clicked
somewhere else on the page, first. So in IE, to disabled/enable the 4
widgets, I need to click the 'yeschk' checkbox, then click anywhere else
except 'yeschk'. I don't understand why this is, and it is aggravating.
Is there a known trick that I could implement that would cause IE to
enable/disable the 4 widgets immediately on a 'yeschk' click?
function chkboxChange() {
document.email.nametext.disabled = !document.email.yeschk.checked;
document.email.emailtext.disabled = !document.email.yeschk.checked;
document.email.addme.disabled = !document.email.yeschk.checked;
document.email.removeme.disabled = !document.email.yeschk.checked;
}
View 2 Replies
View Related
Oct 21, 2003
Should work on IE5.5+ and recent Mozilla clones.
Download size ~30K
Open source (GPL license)
Not released yet, no API documentation (will be soon)
Basically the question is - does it make sense at all? What's your current experience with client-side widgets - too slow, too heavy or there is still a place for things like that?
View 4 Replies
View Related
Aug 5, 2002
Using ViewLink behaviors (IE5.5+) and XBL bindings (Gecko-only - NS6+, Mozilla, etc), I basically created an encapsuled widget. That means you can infinitely reuse it with no conflicts.
To implement on a page, you'll need to add this attribute to the <html> tag to make IE happy:
xmlns:rdhtml="http://rdhtml.resource-locator.com/xmlns"
As well as add another thing to keep IE happy - a proprietary import processing instruction, before the <head> tag:
<?import namespace="rdhtml" implementation="slider.htc"?>
And define this style somewhere and apply it to the page:
rdhtml:slider {
-moz-binding: url(slider.xml#slider);
-moz-user-focus: normal;
-moz-user-input: enabled;
display: block;
padding: 0;
margin: 0;
position: relative;
}
After all of that, to add as many as you want to a page:
<rdhtml:slider width="width in pixels - defaults to 150 if not present" onvaluechange="event to fire when the gripper is moved"></rdhtml:slider>
If I feel the need, I will also implement a "value" attribute which sets the default value of the slider.
Speaking of which, the value property of the element is 0 - 100, reflecting the percentage of the slid amount. And is read/write. :)
(In Mozilla, I implemented a read/write width property as well, and intend to eventually add that in the IE implementation)
You can manipulate the value and position of the gripper by dragging the gripper, clicking on the track (really an hr), or focusing it, and using arrow keys, page up/down, or home/end.
To customize the look, slider.css is applied to every slider.
Required files are:
slider.css (styles the sliders)
slider.xml (XBL binding for Gecko)
slider.htc (ViewLink behavior for IE5.5+)
I've only had it tested in Win2k, XP Home, XP Pro in IE6, and in Win2k and WinXP Pro in a 1.1 trunk Mozilla.
I've been told that it is "sluggish" in IE6, but on my pc it is very smooth. Is it just me where it performs satisfactorily in IE6?
And I'm aware of a weird bug in my implemention of it in Mozilla where clicking on a slider bar sometimes moves the last focused slider instead...
If an IE5 user could confirm that it doesn't work for them, that would be great, and I still need someone in IE5.5 to tell me it works....
Someone with a 1.0 trunk of Mozilla would be much appreciated too. :)
Any ideas for additions would be cool too, though I'm not sure what other attributes I could add that would be useful?
View 6 Replies
View Related
Jan 27, 2011
This isn't really a beginner question. I need to build a webpage that has some form elements on it. These form elements act like filters on a set of page elements. Several input element can be grouped as one of many filters. For example six checkboxes are filter 1 and a radiobutton and a pulldown element are filter 2.
When the user makes some changes in these filters a server request is send and an answer is send back with the result. Depending on the result every filter (group of elements) need to be re-initialized to reflect the new model state on the server.
So my question is: Is it right to see the filters as widgets in a Jquery UI sense? Or is it more appropriate to just see them as plugins. Can someone please share some insight?
View 4 Replies
View Related
Aug 23, 2010
I'm just getting started with jQuery.
I just made a form with a datepicker, which works fine. But I can't get the widget button to work.
I downloaded a theme and I'm importing the files as you can see in the code below. Do I have to download anything else to get the button to work?
My code looks like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[Code]....
View 4 Replies
View Related
May 25, 2011
I integrated JQuery UI, and I have the JQuery tabs working. Since Joomla uses mootols, I had to include thejQuery.noConflict(); And the tabs script " $ " is replaced by JQuery.
However, when I add the Cycle widget, and I replace the $ sign for JQuery, the widget does not work. If I use the $ sign, the widget works. I want to keep my code tidy. Can somebodyenlightenme on this situation?
View 1 Replies
View Related
Mar 19, 2010
I want to display on the partener's website some informations contained on my serveur relative to him (i have multiple parteners) and i thought it would be great to display them like the facebook badge (it's the only example which comes to my mind)
The thing : i really don't know what to do / how to begin :
I cannot use jquery, because it would involve that the parteneer website has jQuery.
I have multiple possibilites on the source of the information :
I can cache a PHP file wich contains informations (but i have 25 parteners so it would be 25 files cached ? -> bad )
I've a XML file [url] but i don't know how to parse an xml file either :O to give you an example i just want to display on crystal-serv information contained between the <GSP> tag where nom = crystal-serv
View 2 Replies
View Related
Nov 14, 2011
I have a problem with width() of jQuery.Normally, width() will return an exact value of element's width instead of the percentage (if we use width: 100%).
I'm writing a widget using jQuery. I have a function to build my widget and set its width based on the outer-bound. I need the exact value of width to arrange the element inside that widget. But when using width(), it returns 100 (means 100%), not the value in pixel (must be 1200px).
View 2 Replies
View Related
May 14, 2009
its an accordion like tool. It functions just how Ineed it, except id love to make it sortable.with the codeupdate?jQuery :
$(function() {
$("#accordion1").addClass("ui-accordion ui-widget ui-helper-reset")
.find("h3")
[code]....
View 1 Replies
View Related
Jul 23, 2009
how to insert a javascript widget to a publisher webpage , i can't seem to be able to enable javascript in publisher 2003. if you can can you let me know how i can activate the widget other wise.
View 1 Replies
View Related
Oct 26, 2011
I have recently downloaded a custom jQuery UI Pack, only using core and tab widget. On the examples in the index.html file, everything loads fine. Then I copy the files to my website directory, (all locally) and the images files just contain a question mark.
View 3 Replies
View Related
May 11, 2010
I was wondering if someone can help me out here. I was wondering if its possible to get this Jquery Image Slider to fit a 250x250 Pixels I want to create a widget on Wordpress.[URL]..If possible in order to get this done we could move the control with the numbers on the bottom and keep the descriptions on top.
If this cant be done, do any of you know any 250x250 Jquery Image sliders. That can possibly work in this format? I'm trying to stay away from Flash much as possible.
View 1 Replies
View Related
Jul 23, 2005
Scrollable table widget with fixed header is there such thing ?
View 2 Replies
View Related