|
What exactly do you mean by making a unique URL for crawling? Your normalization process seems to turn a valid URL into one that may or not may not be valid.
|
|
|
|
|
Johnny ² wrote: What exactly do you mean by making a unique URL for crawling?
Here i am actually applying the URL Normalization Rules to make the URL equivalent to that URL which may be discovered later on that is why i am using the unique keyword here.
For example if i have discovered a URL http://www.example.com:80/ and later on discovered the same URL on another site as http://www.example.com/ then by applying normalization rules i can compare these two URLs.
But i am not sure whether these rules a sufficient or not need your suggestions.
AliAmjad (MCP)
|
|
|
|
|
On a page i have a bunch of checkboxes, and a gridview. I want the checking of a checkbox to filter the records showing in the gridview, basically if checkbox A checked then filter results to show where Column A is true - is this something AJAX can do, and if so how is it done?
Many Thanks
|
|
|
|
|
Hi,
Are you using AJAX to bind grid?If so you cannot get the Grid Data at the clientside as it doesnt keep history.The best way is to call a javascript function which identifies the checked checkbox and pass it as querystring to the target URL using AJAX Call.In the codebehind create a method which connects to Database (assuming there is no session holding the Data.If so you can get from session)passing the filter condition and retreive the result.Once done bind the grid with the HTML content of Grid.
All this can be done asynchronously.
Let me know of any clarifications.
Rajesh Thomas
|
|
|
|
|
Hai,
I am working in Php and Mysql 5.0.
I need to create an online newsletter.
I have to send newsletter (Html files or Email with a pdf file as an attachment) to all email – ids which are stored in an online database.
The html newsletter and pdf file are stored in a folder on the webspace.
I login to our website and send the newsletters through a link or button. This should bind the newsletter to the email id and send the email to the recipient. All this should happen online server-side and automated. The website SMTP should be used minimizing our local bandwidth.
Please, help me to solve this problem. Thanks in advance
Regards,
G.Manivannan M.Sc.,[IT],
Software Programmer (VBA),
AKUVA Infotech, Bangalore.
|
|
|
|
|
Hi
Would like to know if it would be advantageous to store a dataset of all the rows in a SQL DB table in a Application variable and just use a backup function that resets the varible everytime a update is made.
Eg.
myAdapter.fill(data);
Application["Data"] = data;
and when I retrieve
Dataset data = (Dataset)Application(data);
thanx
|
|
|
|
|
No it wouldn't:
- what happens when you have a lot of data?
- DB provides more functionality to query data
- computation load can be distributed on db server and web server
However, caching of little bunches of data is highly advised to get better performance.
-^-^-^-^-^-
no risk no funk ................... please vote ------>
|
|
|
|
|
i m developing web application in which i m sending and receiving sms through mobile connected with a cable. but sms is not receiving.
|
|
|
|
|
are you aware of AT commands and using them?
|
|
|
|
|
what is the device you are using and what is the protocol?
|
|
|
|
|
I've used Siemens GSM modem in one project. I can send and receive messages without problems. First, you should see AT-commands manual. If you did this before, but you can't receive sms messages, it can be problem with COM port communications. Sometimes you can find information about this in the manual about AT commands for your phone.
PS But I recommend you to use special GSM modems, because you will receive all needed materials in one box.
|
|
|
|
|
Dear frnd
there have any way that we can access file property through ASP?
means i need modified date,location,size on disk,file attribute.
if any one has done it before please inform me.
Thank you
abhishek
|
|
|
|
|
|
If i check Parent node all child node must be selected in html menu,please do the needful
parthiban
|
|
|
|
|
Parvai wrote: please do the needful
This makes no sense, sorry.
Parvai wrote: If i check Parent node all child node must be selected in html menu
So you have some sort of DHTML menu with checkboxes. Does it have a support forum ? We can't hope to help you based on the info you have provided. What menu ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi everybody,
i ve written code for image slideshow using slideshowextender in ajax..
now if the user selects a particular image,tat image should be displayed in a seperate image control....
how to give the image path to the new image control..
the paths for slideshow is stored in an array...
pls help me out...
-diwakar
|
|
|
|
|
The script runs fine on my other pages but not on my home page. I know just enough to be dangerous to myself. Any help will be greatly appreciated.
I have put the code in the root directory.
Here's the code:
function SDMenu(id) {
if (!document.getElementById || !document.getElementsByTagName)
return false;
this.menu = document.getElementById(id);
this.submenus = this.menu.getElementsByTagName("div");
this.remember = true;
this.speed = 3;
this.markCurrent = true;
this.oneSmOnly = false;
}
SDMenu.prototype.init = function() {
var mainInstance = this;
for (var i = 0; i < this.submenus.length; i++)
this.submenus[i].getElementsByTagName("span")[0].onclick = function() {
mainInstance.toggleMenu(this.parentNode);
};
if (this.markCurrent) {
var links = this.menu.getElementsByTagName("a");
for (var i = 0; i < links.length; i++)
if (links[i].href == document.location.href) {
links[i].className = "current";
break;
}
}
if (this.remember) {
var regex = new RegExp("sdmenu_" + encodeURIComponent(this.menu.id) + "=([01]+)");
var match = regex.exec(document.cookie);
if (match) {
var states = match[1].split("");
for (var i = 0; i < states.length; i++)
this.submenus[i].className = (states[i] == 0 ? "collapsed" : "");
}
}
};
SDMenu.prototype.toggleMenu = function(submenu) {
if (submenu.className == "collapsed")
this.expandMenu(submenu);
else
this.collapseMenu(submenu);
};
SDMenu.prototype.expandMenu = function(submenu) {
var fullHeight = submenu.getElementsByTagName("span")[0].offsetHeight;
var links = submenu.getElementsByTagName("a");
for (var i = 0; i < links.length; i++)
fullHeight += links[i].offsetHeight;
var moveBy = Math.round(this.speed * links.length);
var mainInstance = this;
var intId = setInterval(function() {
var curHeight = submenu.offsetHeight;
var newHeight = curHeight + moveBy;
if (newHeight < fullHeight)
submenu.style.height = newHeight + "px";
else {
clearInterval(intId);
submenu.style.height = "";
submenu.className = "";
mainInstance.memorize();
}
}, 30);
this.collapseOthers(submenu);
};
SDMenu.prototype.collapseMenu = function(submenu) {
var minHeight = submenu.getElementsByTagName("span")[0].offsetHeight;
var moveBy = Math.round(this.speed * submenu.getElementsByTagName("a").length);
var mainInstance = this;
var intId = setInterval(function() {
var curHeight = submenu.offsetHeight;
var newHeight = curHeight - moveBy;
if (newHeight > minHeight)
submenu.style.height = newHeight + "px";
else {
clearInterval(intId);
submenu.style.height = "";
submenu.className = "collapsed";
mainInstance.memorize();
}
}, 30);
};
SDMenu.prototype.collapseOthers = function(submenu) {
if (this.oneSmOnly) {
for (var i = 0; i < this.submenus.length; i++)
if (this.submenus[i] != submenu && this.submenus[i].className != "collapsed")
this.collapseMenu(this.submenus[i]);
}
};
SDMenu.prototype.expandAll = function() {
var oldOneSmOnly = this.oneSmOnly;
this.oneSmOnly = false;
for (var i = 0; i < this.submenus.length; i++)
if (this.submenus[i].className == "collapsed")
this.expandMenu(this.submenus[i]);
this.oneSmOnly = oldOneSmOnly;
};
SDMenu.prototype.collapseAll = function() {
for (var i = 0; i < this.submenus.length; i++)
if (this.submenus[i].className != "collapsed")
this.collapseMenu(this.submenus[i]);
};
SDMenu.prototype.memorize = function() {
if (this.remember) {
var states = new Array();
for (var i = 0; i < this.submenus.length; i++)
states.push(this.submenus[i].className == "collapsed" ? 0 : 1);
var d = new Date();
d.setTime(d.getTime() + (30 * 24 * 60 * 60 * 1000));
document.cookie = "sdmenu_" + encodeURIComponent(this.menu.id) + "=" + states.join("") + "; expires=" + d.toGMTString() + "; path=/";
}
};
bless you all for your help!
|
|
|
|
|
Bah! I think you're just showing off! Here's a script that will work on ANY page, even your homepage:
alert('Nyah! Nyah!');
...have you tried your script in Firefox with Firebug installed? Maybe that will give you some clue as to where the problem may lie....
This line:
document.cookie = "sdmenu_" + encodeURIComponent(this.menu.id) + "=" + states.join("") + "; expires=" + d.toGMTString() + "; path=/";
right at the end, is the only thing I can see that may be affected by the page location, with it's "path=/" at the end....
I have no idea..!
Fred
|
|
|
|
|
Ok, ran Firefox w/Firebug and got
My_menu as "undefined"
I tried your suggestion about removing the "Path=/" and that did not help or hurt the problem.
Any other suggestions?
Thanks
|
|
|
|
|
well I suspect it's not your JS code as you've posted it then, but a link/referecne to My_menu elsewhere on your homepage that isn't correct, or is missing. Check your references and links to external files.
|
|
|
|
|
Hi,
Can someone please explain to me what is the following:
<link rel="icon" href="http://www.mysite.com/images/favicon.ico" type="image/x-icon">
And also what is the difference between the following two tags:
<link rel="shortcut icon" href="http://www.mysite.com/favicon.ico">
<link rel="shortcut icon" href="http://www.mysite.com/images/favicon.ico" type="image/x-icon">
Thanks
|
|
|
|
|
This top line is a link to the image to use as an icon to display in the browser address bar - this site has one too, if you look, and you will see a similar line if you a do a "view source" on this page. The icon should always have this name. Do a Google search, or wikipedia, for "favicon" for more....
As to the oher two: not a lot, is the answer; the second is just specifying the type of file being linked to. Saves the browser from having to work it out itself.
Fred
|
|
|
|
|
just a follow-up on my previous post, I use the javascript command, window.close to close the window of the site, and also i need to dispose the session using the session.abandon. the problem is that there is a confirmation windows upon closing the site, how can i use the client side render confirmation to trigger the command to dispose the session on the server side
|
|
|
|
|
That confirmation you are getting is because of the window.close. You can fix this by setting the opener = this. Then you would no longer get the confirmation to close the window. As far as how to do the session abandon you should probably implement some ajax, since you can call that from your javascript and that can run some code back on the server side.
Hope that helps.
Ben
|
|
|
|
|
I have a class Category, that derives from the ServiceResource class.
public class ServiceResource
{
public string endpoint_url;
public ServiceResponse Save()
{
string post_params = BuildParameters();
ServiceRequest request = new ServiceRequest();
ServiceResponse resp = request.Send("POST", this.endpoint_url, post_params);
return resp;
}
public string BuildParameters()
{
throw new Exception("You must set this in the derived class");
}
}
And the Category class:
public class Category : ServiceResource
{
private int id;
private string name;
public string BuildParameters()
{
return "I am overriding base.BuildParameters()";
}
public string endpoint_url = "/categories";
public int Id
{
get { return id; }
set { id = value; }
}
public string Name
{
get { return name; }
set { name = value; }
}
}
Now I would like to be able to use the Category class like this:
Category c = new Category();
c.Name="new category";
c.Save();
Now when Save is called, it will call the method BuildParameters. However, I want it to call BuildParameters in the derived class and not the base class, same with endpoint_url. At this point, base.BuildParameters is called instead.
How can I do this.
/\ |_ E X E GG
|
|
|
|