Search engine takes Static data faster for SEO purpose, But if my data is coming form data base means my data is dynamic then what to do SEO of that Data?
Hi Guys,
after playing around this morning, i've found that there's this default chunk of html code in the amazon webstore which will add a toolbar on top of the page. the html looks like below:
<td id="wba_logo_bg">
<table class="logo" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr><td align="left"></td>
<td class="wba_account" style="padding: 5px;" align="right" valign="top">
<table border="0" cellpadding="0" cellspacing="0">
<form action="#" id="searchForm" method="get" name="searchForm"></form>
<tbody><tr><td class="wba_account_link">
<a xmlns:xhtml="http://www.w3.org/1999/xhtml" class="myAccountNav" href="#" onclick="return false;">home</a></td>
<td class="myAccountDots"></td>
<td class="wba_account_link"><a class="myAccountNav" href="#" onclick="return false;">view cart</a></td>
<td class="myAccountDots"></td><td class="wba_account_link"><a class="myAccountNav" href="#" onclick="return false;">my account</a></td>
<td class="myAccountDots"></td><td class="wba_account_link"><a class="myAccountNav" href="#" onclick="return false;">order status</a></td>
<td><img src="pageEditor_files/1_pixel.gif" hspace="7"></td>
<td><input name="keyword" tabindex="1" type="text"></td>
<td><img alt="Search" class="wba_search_btn" onclick="return false;" onkeyup="if (13==event.keyCode) searchForm.submit();"
src="pageEditor_files/btn_search.gif" style="cursor: pointer;" tabindex="2" title="Search" hspace="3">
</td></tr></tbody>
</table>
</td></tr></tbody>
</table>
</td>
and thus far i was able to use prototype to find those with the class name of wba_account_link and hide them via the codes below:
function hideAmazonToolbar()
{
$("wba_logo_bg").hide();
}//end function
but what i really want to do is preferably to hide the whole tbody instead, but with my limited prototype skills, i don't really know how to do this. can anybody point me to the right resources on how to get this done?
thanks!
EDIT
Went higher up and apparently there's a td with an id, and solve it using prototype hide function! man, i love javascript framework :)
thanks :)
I'm building a form validation script for one of my sites, and I thought I'd make the error messages international, meaning that depending on the users language I'd give such or such response.
What would the best approach be, for loading a configuration file inside of my class?
Right now I'm using the following structure for a single language:
const config = {
'errorName' : 'error message',
'errorName2' : 'error message',
'errorName2' : 'error message'
}
And calling it like this of course: config['errorName']. But I don't know how to load those variables from a file, let's say 'lang/en.js'
i have the following code
Private Sub select_color_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles select_color.Click
Dim ocolor As New ColorDialog
ocolor.ShowDialog()
Me.BackColor = ocolor.Color
End Sub
and it changes the background color of form to the color i select in colordialogue...
now i want to change the BGColor of shockwaveobject in this way...however i can change the BGColor of shockwave object manually in toolbox but i want to change it by color dialogue how can i do that...
For the longest time I've been curious to code in Microsoft Intermediate Language (MSIL) just as an academic endeavour and to gain a better understanding of what's "happening under the hood".
Is there any sort of Visual Studio support for this in the form of: project templates, IntelliSense integration, and those kind of RAD features?
I am using fancybox for loading a Huge form "1300px" height ( i know it is not something good but the client wants it like this) the problem that it doesn`t cover the whole height i tried
autoDimensions
$.fancybox.resize
with no luck although other parts that uses fancybox is working without a problem so any tips will be great.
also i want to know how to load data (a div) from another HTML inside fancybox?
Hi,
My tables are named in a plural form - Models / Entities, is there a way to make the generated classes named Model / Entity?
(Don't know if this is relevant, but I'm using Propel as the ORM)
Thanks.
hi
first sorry for my English
i try to get a word under mouse
now my problem how to get the font of button
i try to use
IntPtr dc= GetDC(button1.Handle);
IntPtr last_font = SelectObject(dc, Font.ToHfont());
Font fon = Font.FromHdc(dc);
but it gave me the font of the form
and some time gave me error
Only TrueType fonts are supported. This is not a TrueType font
any body help me
Hi all, i am currently working on a web application that needs to accept video uploaded by users in any format (.avi, .mov, etc.) and convert them to flv for playing in a flash-based player.
Since the site is OpenCms-based, the best solution would be a ready-made plugin for OpenCms that allowed to upload and play videos doing the transcode operation in background, but just a set of Java classes to do the transcode would be great and then i could make the uploading form and playback part on my own.
my code is :
html with the js in section please ch3eck it out i need to prodeuce the result of the form of five questions and display it in the last section of the page where am i going wrong am using innerhtml js thing to produce the result in the last section
<div id="section1">
<script type="text/javascript">
function changeText2(){
alert("working");
var count1=0;
var a=document.forms["myForm"]["drop1"].value;
var b=document.forms["myForm"]["drop2"].value;
alert(document.forms["myForm"]["drop2"].value);
var c=document.forms["myForm"]["drop3"].value;
var d=document.forms["myForm"]["drop4"].value;
var e=document.forms["myForm"]["drop5"].value;
var f=document.forms["myForm"]["drop6"].value;
if(a===2)
{
count1++;
alert(count1);
}
else
{
alert("lit");
}
if(b===2)
{
count1++;
}
else
{
alert("lit");
}
if(c===2)
{
count1++;
}
else
{
alert("lit");
}
if(d===2)
{
count1++;
}
else
{
alert("lit");
}
if(e===2)
{
count1++;
}
else
alert("lit");
}
alert(count1);
document.getElementById('boldStuff2').innerHTML = count1;
</script>
<form name="myForm">
<p>1)  Who won the 1993 “King of the Ring”?</p>
<div>
<select id="f1" name="drop1">
<option value="0" selected="selected">-- Select -- </option>
<option value="1">Owen Hart </option>
<option value="2">Bret Hart </option>
<option value="3">Edge </option>
<option value="4">Mabel </option>
</select>
</div> <!--que1-->
<p>2)  What NHL goaltender has the most career wins?</p>
<div>
<select id="f2" name="drop2">
<option value="0" selected="selected">-- Select -- </option>
<option value="1">Grant Fuhr </option>
<option value="2">Patrick Roy </option>
<option value="3">Chris Osgood </option>
<option value="4">Mike Vernon</option>
</select>
</div> <!--que2-->
<p>3)  What Major League Baseball player holds the record for all-time career high batting average?</p>
<div>
<select id="f3" name="drop3">
<option value="0" selected="selected">-- Select -- </option>
<option value="1">Ty Cobb </option>
<option value="2">Larry Walker </option>
<option value="3">Jeff Bagwell </option>
<option value="4">Frank Thomas</option>
</select>
</div> <!--que3-->
<p>4)  Who among the following is NOT associated with billiards in India?</p>
<div>
<select id="f4" name="drop4" >
<option value="0" selected="selected">-- Select -- </option>
<option value="1">Subash Agrawal </option>
<option value="2">Ashok Shandilya </option>
<option value="3">Manoj Kothari </option>
<option value="4">Mihir Sen</option>
</select>
</div> <!--que4-->
<p>5)  Which cricketer died on the field in Bangladesh while playing for Abahani Club?</p>
<div>
<select id="f5" name="drop5" >
<option value="0" selected="selected">-- Select -- </option>
<option value="1">Subhash Gupte</option>
<option value="2">M.L.Jaisimha</option>
<option value="3">Lala Amarnath</option>
<option value="4">Raman Lamba</option>
</select>
</div> <!--que5-->
<a href="#services" class="page_nav_btn next"><input type='button' onclick='changeText2()' value='NEXT'/></a>
</form>
</div>
<div id="section2">
</div>
...
<div id="results">
<b id='boldStuff2'>fff ggg</b>
</div>
need to display the results of each section at the last div as shown in script...
js for first section not working plz some help me where am i going wrong....
I'm working on a simple spell checking app for a lecture that I'm giving. I've got the basic spell checking code working just fine using a child form and NHunspell - great lib, by the way.
However, I'd like for the parent textbox to show the highlighted text for reference, and while I'm setting the SelectedText properties accordingly, the text is not highlighted in the parent. Canceling the child window and the parent text is highlighted.
Anybody know how I can do this?
I am looking for a simple computer algebra system (cas) for JavaScript but I can't find anything with google. I only need basic functionality:
simplify expressions to some canonic form. Ability to check if two expressions are the same, i.e., a(x+y) == ax+ay
parse mathematical formulas. I want it to be able to read expressions like ax²+4x.
solve simple equations etc.
Do you know of such a library?
Hi all,
My prob in brief:
I am validating a registration form with server side using php and its working fine.
Now my prob is i need to show the error message using thickbox like popup.
Is that possible. If yes please explain how?
thanks in advance
Basically what I want to do is display an email using javascript to bring the parts together and form a complete email address that cannot be visible by email harvesters.
I would like to take an email address eg [email protected] and break it to:
$variable1 = "info";
$variable2 = "thiscompany.com";
All this done in PHP.
Regards,
JB
I am working on a form with the possiblity for the user to use illegal/special characters in the string that is to be submitted to the database. I want to escape/negate these characters in the string and have been using htmlspecialchars(). However, I would like to know if there is a better/faster method.
I am trying to use the .NET Windows Form OpenFileDialog control to select a font file (not a font as you would with the FontDialog), but the dialog will not allow a mouse click to select a file in the C:\WINDOWS\Font directory.
Any ideas for choosing a font file
It's not a practically important issue, but could you please provide me with an example of tacit programming in F# where my `pointless' functions can have multiple arguments (not in form of list or tuple);
And secondly, where those functions can manipulate a complex data structure. I'm trying to manage it in FSharp interactive, but have no success yet.
Huh.. I've managed to construct something:
(fun _ - (fun _ - (+))) 333 222 111 555
Is that right way?
I am working on an MVC site using NHaml for the view engine.
I have a page that needs to submit HTML code as a form value and am getting the System.Web.HttpRequestValidationException thrown at me.
I want to specify the <%@ Page validateRequest="false" % so that this page will allow this data to be submitted but am unsure on how to do this with NHaml generating the pages.
I work on a Symfony web application which has a standard login form. To allow users to login more easily we want to give them a link which logs them in directly. I've already build a way to get a token to use, but I have no clue as to how the Symfony login process works, specifically how I can adapt it to take a GET/POST token instead of redirecting to the login page.
Any help appreciated!
Oh and this is Symfony 1.2 BTW (and no, upgrading is not an option right now)
In an auto-generated chart based on a query (I dragged the chart object onto a blank form to start it), the chart itself is displaying and updating properly, datawise, but I want to change the Legend from reading "SumOfAvgOfield1" and "SumOfAvgOfield2" to regular words suitable for final presentations. But I can't find a way to change it!
I have a Django site in which the site admin inputs their Twitter Username/Password in order to use the Twitter API. The Model is set up like this:
class TwitterUser(models.Model):
screen_name = models.CharField(max_length=100)
password = models.CharField(max_length=255)
def __unicode__(self):
return self.screen_name
I need the Admin site to display the password field as a password input, but can't seem to figure out how to do it. I have tried using a ModelAdmin class, a ModelAdmin with a ModelForm, but can't seem to figure out how to make django display that form as a password input...
I am writing a module and I need to retrieve values set in a form_submit function from a page handler function. The reason is that I am rendering results of a form submit on the same page as the page handler.
I have this working, but I am using global variables, which I don't like. I'd like to be able to use the $form_state['storage'] for this, but can't since I don't have access to the $form_state variable from the page handler.
Any suggestions?
Hi,
My tables are named in a plural form - Models / Entities, is there a way to make the generated classes named Model / Entity?
(Don't know if this is relevant, but I'm using Propel as the ORM)
Thanks.