|
I checked, everything looks fine.
I am surprised to read it as I remember you saying that the demo is working perfectly fine.
Hope you are not facing any problem.
|
|
|
|
|
Hi folks,
this is my first message and blablablabla..., let's talk about serious stuff.
In my aspx website I'd like to insert a gallery of images using lightbox 2, http://www.lokeshdhakar.com/projects/lightbox2; at the same time I'm also using UrlRewriting. When i have UrlRewriting turned on if I try to view the images lightbox doesn't run, just I get a redirect directly to the image; to the other hand, when UrlRewriting is turned off lightbox runs very well.
Can anyone help me?
Thanks!
|
|
|
|
|
I've been trying to create a group of rules in .htaccess that will deny bots access to specific groups of pages in my site. Specifically, my site is a Wiki (running MediaWiki), and I would like to prevent bots from accessing any pages in the "User", "Talk" or "Special" namespaces, while allowing them to spider other pages on the site.
Below is my attempt... but it's not working. The basic approach I'm trying to use is this:
1. set an environment variable that identifies if the REQUEST_URI's that I want to exclude
2. set an environment variable that detects if the user agent is a bot
3. If both of the above environment variables are set, deny the page.
Can anyone give me a tip as to why the code below is NOT doing what I describe above?
RewriteEngine on
### Identify non-bot pages with environment variable
RewriteCond %{REQUEST_URI} ^/reference/index.php?title=User:.* [OR]
RewriteCond %{REQUEST_URI} ^/reference/index.php?title=Talk:.* [OR]
RewriteCond %{REQUEST_URI} ^/reference/index.php?title=Special:.*
RewriteRule ^.* - [E=PAGE_NO_BOT:1]
### Identify bot user agents with environment variable
RewriteCond %{HTTP_USER_AGENT} ^.*Googlebot.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*robot.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*Slurp.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*Scooter.*
RewriteRule ^.* - [E=CLIENT_IS_BOT:1]
### If it is a bot AND it is looking at a non-bot page, deny
RewriteCond %{ENV:PAGE_NO_BOT} ^1$
RewriteCond %{ENV:CLIENT_IS_BOT} ^1$
RewriteRule ^.* - [F,L]
|
|
|
|
|
Hello Everyone
I Have two text boxes having a label of Emp Name and Emp Sal and then click on submit button that values will added in a gridview and from gridview it will inserted into databse. I am using asp.net 2.0 and sql serevr 2005
Thanks in advance
Saurabh Agarawl
modified on Friday, December 12, 2008 12:48 AM
|
|
|
|
|
|
Hi
Thanks for sending a link..
but i dont wont this, there are two textboxes and button, user will enter the values in textbox, and then after clicking on add button it will enter into griview and from gridview it enter into database.
Thanks in advance
Saurabh agarwal
|
|
|
|
|
HI
I am using iTextSharp - table control to create tables.
I was able to add 2 inner tables to an outer table by:
m_OuterTable = new Table(columns, rows)
{
Width = 100,
Cellpadding = 2,
BorderWidth =0
};
m_InnerTable1 = new Table(columns, rows)
{
Width = 80,
Cellpadding = 2
};
m_InnerTable2 = new Table(columns, rows)
{
Width = 80,
Cellpadding = 2
};
m_Outertable.InsertTable(m_InnerTable1);
m_Outertable.InsertTable(m_InnerTable2);
document.Add(m_OuterTable);
When I do the above the two inner tables touch each other. I would like to add a few space between them so that they look like two different tables, rather than 4 columns as it looks now.
Thanks in advance
BV
|
|
|
|
|
I'm sure there are plenty of people who can tell by looking at it...but what language am I looking at?
|
|
|
|
|
Hi,
I am using ITextSharp tables, in C#.
Thanks in advance
|
|
|
|
|
I would like to know how to capture the current position of the cursor within a textbox, and then if necessary how to place within the text area to change the text insertion point.
Thanks,
Leo T. Smith
Program/Analyst Supervisor
|
|
|
|
|
Hi,
Just out of curiosity, does it matter in what order the javascript, stylesheets and metatags appear on the web page?
Is this acceptable:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="Includes/Stylesheets/mystyles1.css" />
<meta name="robots" content="index,follow" />
<link rel="stylesheet" type="text/css" href="Includes/Stylesheets/mystyles2.css" />
The reason why I aqsk is because I have a master page which has styles needed across all web pages, but some pages require additional styles, and it seems as if .NET appends to the last one instead of grouping all the meta tags or stylesheets.
Brendan
|
|
|
|
|
I don't think there is any issue with the Sequence
|
|
|
|
|
The stylesheet order is relevant; they're called cascading style sheets because of that. You can declare a style for all pages first in the order, then apply styles to override the general style afterwards in each page, as needed. I believe that inline styles will add further refinement by temporarily overriding all page style sheets, but I've never tested that. You might experiment with that a bit, and if that works, it would be neater to do the page-specific styles inline and leave only those styles applicable to the entire site in the HEAD region.
"A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Hi all,
I am working on a project where i need to download a file from a server to a specified local location and open it localy from its native application by clicking one button and then upload it by one click also without any interactive interface.
i found that the best way is to build a com object and embed it inside an aspx page to be used as an IE addon to communicate with local storage for the client.
so please can you provide help about how to do it. or if there is any other solution please help me it is urgent.
Mohamad Abdou
|
|
|
|
|
google for 'activeX', that's what the COM object is called. This will only work with IE, a Java applet will work with FF, etc.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi All
I have a webmethod that I would like to step through it, I call it from a web application.
I have a break point on the line that calls the webmethod and another one on the signature of the webthod in the webservice.
When I try to step into this web method I get the following error.
"Unable to automatically step into the server. The remote procedure could not be debugged. This usually indicates that debugging has not been enabled on the server."
Would you please assist me, I need know to get thi ssorted as soon as possible.
I just want to know how togo abount resolving this issue.
Thank you in advance.
MP
MP
|
|
|
|
|
You don't need the breakpoint on the line that calls the webmethod. Just attach to your process running your web service and stick a breakpoint in there.
|
|
|
|
|
Alright I have a .php document that lists the results from a query into a table, and has some controls above the table that allow me to make changes to entries if something isn't quite right. Here is the CSS:
body {
background-color: #cccccc;
}
#changeStatus {
font-family: arial, helvetica, sans-serif;
font-size: 0.6em;
position: absolute;
left: 2em;
top: -10em;
}
#changeUser {
font-family: arial, helvetica, sans-serif;
font-size: 0.6em;
position: absolute;
left: 28em;
top: -10em;
}
#changeRequired {
font-family: arial, helvetica, sans-serif;
font-size: 0.6em;
position: absolute;
left: 55em;
top: -10em;
}
#changeRequested {
font-family: arial, helvetica, sans-serif;
font-size: 0.6em;
position: absolute;
left: 86em;
top: -10em;
}
#itlisttableadmin {
font-family: arial, helvetica, sans-serif;
font-size: 0.8em;
position: absolute;
left: 0em;
top: 8em;
}
th {
font-family: arial, helvetica, sans-serif;
font-size: 0.8em;
color: maroon;
}
td {
font-family: arial, helvetica, sans-serif;
font-size: 0.8em;
}
IE of course garbles it up just because it's IE, but it works just fine in Opera. Everything looks exactly how it should. When I open the page in Firefox, the font-family and font-size for the #change sections work fine, but the positioning doesn't. All the other parts of the CSS work.
Can someone tell me what I'm doing wrong? The CSS statement is called in the PHP like this echo "<link rel="stylesheet" type="text/css" href="admincss.css" />"; .
|
|
|
|
|
I don't see any errors in the css code, but without knowing where the elements are in relation to the table it's hard to say if it makes sense or not...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
They are supposed to be above the table and across the top like this
http://i30.photobucket.com/albums/c305/m450n/opera.jpg
But in Firefox they look like this
http://i30.photobucket.com/albums/c305/m450n/firefox.jpg
Do you need to see any pieces of the PHP code itself or would that make a difference?
|
|
|
|
|
The identifiers are case sensetive, are the id:s of the elements exactly as you have written in the css? Some browsers ignore this rule and matches the identifiers as non case sensetive, which could explain why Opera applies the positioning but not Firefox.
I'm just guessing here... that's the best I can do without seeing any of the html code...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Yes I checked the cases, just to be sure I changed them to all lowercase in both places. No change in either browser.
The odd thing is that I have another table setup (one for the admins and one for the users) that shows up perfectly in both Opera and Firefox. It's written the exact same way and I can't figure out why it is that the admin one won't work when the regular user one does.
Suggestions on what to try next?
|
|
|
|
|
47_MasoN_47 wrote: Suggestions on what to try next?
Show some code.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
<?php
// Connecting to MySQL and selecting the xxx database
include 'it-opendb.php';
// Authentication - not secure...needs work
$adminPass = $_REQUEST['adminPass'];
if ($adminPass == "xxx") {
// Retrieve data from xxx database - xxx table
$request = mysql_query("SELECT * FROM xxx") or die(mysql_error());
// CSS statment
echo "<link rel='stylesheet' type='text/css' href='admincss.css' />";
// Display retrieved data with while loop
echo "<div id='itlisttableadmin'>";
echo "<table border='1'>";
echo "<tr> <th>Case #</th> <th>User Name</th> <th>Date Requested</th> <th>Date Required</th> <th>Problem</th> <th>Status</th></tr>";
while($row = mysql_fetch_array($request)){
// Print out list of IT requests into a table
echo "<tr><td>";
echo $row['id'];
echo "</td><td>";
echo $row['userName'];
echo "</td><td>";
echo $row['dateRequested'];
echo "</td><td>";
echo $row['dateRequired'];
echo "</td><td>";
echo $row['problem'];
echo "</td><td>";
echo $row['status'];
echo "</td></tr>";
}
echo "</div>";
echo "<div id='changeStatus'>";
echo "<form id='adminStatus' action='adminStatus.php' method='post'>";
echo "<p><label for='case'>Case #: </label><input type='text' maxlength='4' name='case' id='case' /></p>";
echo "<p><label for='newStatus'>New Status: </label><input type='text' name='newStatus' id='newStatus' /></p>";
echo "<p><input type='submit' name='adminStatusSubmit' id='adminStatusSubmit' value='submit' />";
echo "</form>";
echo "</div>";
echo "<div id='changeUser'>";
echo "<form id='adminUser' action='adminUser.php' method='post'>";
echo "<p><label for='case'>Case #: </label><input type='text' maxlength='4' name='case' id='case' /></p>";
echo "<p><label for='newUser'>New User Name: </label><input type='text' name='newUser' id='newUser' /></p>";
echo "<p><input type='submit' name='adminUserSubmit' id='adminUserSubmit' value='submit' />";
echo "</form>";
echo "</div>";
echo "<div id='changeRequired'>";
echo "<form id='adminRequired' action='adminRequired.php' method='post'>";
echo "<p><label for='case'>Case #: </label><input type='text' maxlength='4' name='case' id='case' /></p>";
echo "<p><label for='newDRequired'>New Date Required: </label><input type='text' name='newDRequired' id='newDRequired' /></p>";
echo "<p><input type='submit' name='adminRequiredSubmit' id='adminRequiredSubmit' value='submit' />";
echo "</form>";
echo "</div>";
echo "<div id='changeRequested'>";
echo "<form id='adminRequested' action='adminRequested.php' method='post'>";
echo "<p><label for='case'>Case #: </label><input type='text' maxlength='4' name='case' id='case' /></p>";
echo "<p><label for='newDRequested'>New Date Requested: </label><input type='text' name='newDRequested' id='newDRequested' /></p>";
echo "<p><input type='submit' name='adminRequestedSubmit' id='adminRequestedSubmit' value='submit' />";
echo "</form>";
echo "</div>";
}
else {
echo "Wrong Password - Try again";
}
?>
|
|
|
|
|
Do you have a doctype, a html element, a head element and a body element, or is that all the code?
There are elements using implicit end tags as in XHTML, but the code is not at all valid XHTML.
There is no end tag for the table, which in itself may very well mess up the page.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|