HTML Or XML Depending On Client.

Suppose I have a widget A that I would like to embed in several websites B,
C, and D.

Sites B and C are happy with the widget the way I've styled it but site D
isn't and wants to restyle it themselves.

What would be the best way of doing this in ASP? My thoughts are that I
have an ASP page that determines in a query string has been provided (issued
to site D) and returns XML otherwise returns my formatted HTML.

View Replies


ADVERTISEMENT

Run Commands Depending On Origin

Is there a way to tell an asp file which set of commands to run depending on what file they just came from?

View Replies View Related

Sending An Email Depending On CheckBox Value

I have an ASP page with ten checkboxes and depending on which checkbox is selected I need to send an email to a specific recipient.

Thus far, I am able to send the values from page one to page two, but using CDONTS email functionality isn't really working. Actually, I can't imagine where to begin.

View Replies View Related

Different Messages Displayed Depending On Stock Level

I want to display a different message deppending on the amount of stock left. For example if there is no stock i would like to display "out of stock", if the item is in stock display "in stock". Code:

View Replies View Related

Changing Cell Color Depending On Content

Is there a way of having a cells bg color change depending on its content? And what would be the best way of doing it?

I am wanting to use a traffic light style system for coloring number content cells. 0-33 Red, 34-66 Amber, 67> Green

View Replies View Related

Load Different Code Depending On Number Of URL Variables

Currently, when I'm building dynamic pages I build a page (for example, default.asp?ID=2) to process one variable within the dynamic URL (ID), and find myself having to create a seperate page if I want to process 2 variables for the same content (i.e default.asp?ID=2&Dt=3).

Surely there's a way of loading different content on the page depending if the URL you to the page has either one or more URL variables - is there a way of doing this? I've been thinking about it, and would it be simplest just writing an IF statement (e.g : if the URL contains only one URL variable, load this content, if it contains 2 URL variables, load this other content.

Would someone please be able to give me an example of how this IF statement would be written?, as I've never had the need to write an IF statement before. If you are able to give me an example of the IF statement I'm after, would you be kind enough to comment it aswell so I can understand the methodology behind it?

View Replies View Related

Change The Text Color In Input Box Depending On The Value Of It

I want to change the text color of the input box depending on the value entered by user.

View Replies View Related

JavaScript - Display Text, Depending On Input

I want to have a user input a value (1 through 10) in a form. Then click submit. and right under that have text appear depending on what they input. This is what I have, but it doesn't work. I'm not understanding the flow of the script getting called. Code:

View Replies View Related

How To Set Form Fieds Depending On Selected Item In Drop Down List

I am having a drop down list and other text boxes in a form. I need to retrive and fill text boxes from database depending on the selected item in drop down list. I am using javascript as scripting language. Can any body give solution.

View Replies View Related

Session Retrieve Of Username Depending On Which User Logs Into The System?

I have my system set-up, where by when a user accesses the cms, a time stamp is added to the database. So we can keep check of when people accessed the system.

The added benefit of my addition, is that a session timeout is usable based on the inputted timestamp the user logged in. I added this functionaility because the system could be idle for some time and if so set the session to equal nothing or similar.

However what would be a nice feature of the cms is the display of the current user.

Below is code I have inputted to give some idea of what I am doing

Session("ADID") = objRS("adminID")
objConn.Execute("UPDATE tblAdmin SET adminLastLogged=now() WHERE adminID=" & Session("ADID"))

Session.Timeout = 30 ' 30 = Minutes

SO does anyone know how I can retireve the adminUsername based on the session used when loggin into the system.

View Replies View Related

Systematic Updating Of Records Depending On Amount Of Records In Another Table

The problem concerns 2 tables, cart_products and cart_shoppingcart.

Cart_products contains all the product data (eg, prices, product's key name, etc), but most importantly, it contains the quantity of stock (prod_quantity) for each item.

cart_shoppingcart contains all of the user's items in their shoppingcart, including those that are part of an (customer) order; these have the order_number to differentiate from those that aren't in any order (their Order_number is 'no_order', the others have the order number).

Now, what I want to do is this:

For every item in the order (ie, every entry in cart_shoppingcart that matches the username and order number), take the quantity (x) the customer is ordering, then take the quantity of stock remaining (y), then subtract x from y to create the new stock level (z) and update the appropriate record in cart_products with z (all this with SQl preferably).

I was thinking of using a Do while loop, but realised that it wouldn't work as I'd have to use several SQL statements and then I'd run into a problem the minute ASP reads "objrec.movenext".

View Replies View Related

Generating A Combo Box Depending On The Field Selected In A Former Combo Box

I 'm trying to display a combo box (which datas are coming from a database) depending on the select of another combo box in the same form. I think I should use the property onChange of JavaScript but don't know what to give in parameters.

In fact, I have an ASP function which generate a table containing the Strings obtained thanks to a request in a database. Then I'd like to put the Strings contained in the table, to a combo box. The combo box should refresh each time the user select another field in the former list. It must be developped dynamically.

View Replies View Related

Copy Part Of HTML Table To Another HTML Page

I have a table having 3 columns. There is a checkbox for each line. I
need to get those lines whose checkboxes are checked, and show those
lines to another webpage. Is there any way to do that? My concern is
that all information in the table are in <tb></tb> pairs without any
name tag. Any idea?

View Replies View Related

Displaying The HTML Code In HTML

I'm doing a content management system, whereby the user can enter the HTML code for a currency symbol, eg &pound; for £.y . when I bring this data backup, say they want to edit the settings, then my ASP/HTML page is rendering the HTML code, eg £, rather than showing the original value, eg &pound;.

If for example I put a space between the '&' and the 'pound;', eg & pound; then this will cause me problems because the user will think that they have to a put a space in or they file it with the space, which means the HTML code won't work any more. Is there a way round this?

View Replies View Related

Html Inside Another Html

i need to include the html inside another html, though it might appear simple, the catch is this, my one html is in one server and my another html is in another server.I cannot read the html and stream it as it has images and their path gets changed when i do that.

More over i donot have any control over the html which i am going to include all i have is a url http:abcxx.htm whose content i want to show in another asp page. The technology is ASP (vbscript and javascript).

View Replies View Related

Client IP

I try to use script to get client IP

<%
dim IPAddr
IPAddr = Request.ServerVariables("remote_addr")
Response.Write("Your IP Address is " & IPAddr)
%>

but script return IP of Web site, not CLIENT and not null value!
My site is hosted on W2003 server SP1, IIS, ISA
I'm only using ASP no ASP.NET

View Replies View Related

Client Via Asp

I've been lurking and searching for a while and hope someday to contribute to the forums.
My question though it may seem strange is this.
Is it possible to run a compiled VB app on the client machine that is called from an asp app running on an intranet server?
Intranet server pushes asp to client's web browser.
Client clicks on a link that somehow runs the process on the client machine.
I realize this is not what asp is meant to do but I do have some applications that could be integrated into the company intranet fairly easily if this is possible. A re-write in asp would be labor intensive. It is simple enough for me to setup standard folders on the clients that require these apps

View Replies View Related

What URL Did Client Come From

I have 2 URL's like this:

xy.abc.com
yz.abc.com

They bolth point to an IP where page1.asp is the default. Hosted on a IIS 6
server.

What code do I use inside page1.asp to determine which of the 2 sites above
the user used to access page1.asp.

View Replies View Related

Learning Client Ip

how can i learn client ip who connect my site..

request.ServerVariables("REMOTE_ADDR") with this i learn my server ip..

View Replies View Related

Client Scripting

The following HTML exists on a page in Internet Explorer v6:

<BODY>
<FORM action="x" method="post" name="Form1">
<INPUT type="hidden" name="key" />
<INPUT type="submit" value="Go" />
</FORM>
</BODY>

What would be the correct VBScript or JavaScript syntax to:
A. Set the value of the key field to "ABC"
B. Submit the form to the server

View Replies View Related

Downloading To Client From ASP

I am developing an app that has a reporting function
which displays the non-PDF reports. One of the users
wishes to have the reports saved to his machine as PDFs.

The app can convert the reports, and save to the server
with no problem (uses a component for this). The problem
is, figuring out how to save the reports to the client.

The ideal approach would be to have the app save the
reports to his desktop, like some of those stupid casino
sites save their shortcut links.

However, I would settle for just just being able to force
the "download" dialog to display, instead of opening
Acrobat when the app attempts to send the report to the
client.

View Replies View Related

How To Get Client Email?

im setting up a database email for my job and i still need a little help. Thx for those who helped me out for past touble...

Well, im now at the step of email deletion from the list and im using a simple script for that (cuz im new to programming).

After the customer received the email, i want him to be able to unsubscribe to my newsletter with a click on a link which lead to a delemail.asp page where the script is. Code:

View Replies View Related

How Can Get Client Ip Address

how can i find the ip address of a client?

View Replies View Related

Streaming XLS To The Client

I have a page which allows the user to open one of several spreadsheets by
streaming the XLS to the client.

On my development site, everything appears to work fine. On the live site,
it works fine for the vast majority of users, but not for my colleague & I.

When this page is called with the correct inputs, the standard
Open/Save/Cancel/More Info dialog should appear. In the dialog, it gives the
following details:

Filename: Gothenburg Sweden.xls
File type: Microsoft Excel Spreadsheet
From: Servername

Clicking on open, means that the file will be opened in the local copy of
Excel; this works for most people, except one colleague and myself. In our
case, after clicking on Open, we get the following error msg:

"Internet Explorer cannot open travel.asp?journey=1 from <servername>
Internet Explorer was not able to open this internet site. The requested
site is either unavailable or cannot be found. Please try again later."

Anybody got any ideas about this? Code:

View Replies View Related

Client Entries

I want to validate client entries into textbox,checkbox
controls etc. can u do this with asp. Like, is there
onchange and onclick and so on for these controls?

View Replies View Related

Client Intranet

I'm currently working on an Intranet for one of our clients. I'm developing a user directory for them using a SQL Server database.
My client has provided me with the information to connect to the server remotely via windows remote desktop connection. I would like to know how I go about getting Dreamweaver to connect to the database?
Will I have to create a database locally and then publish the local database onto their server or, can I create the database on their server and using DW to connect to it?

View Replies View Related

Client Side

This has happened before and it was due the connection string not being set
in VB. My question is, when I try to reconnect can I use a different
connection string on the client than I have on the server, I wonder because
not all my connection strings are not equal.

Some of my database paths are in Access and the rest are in SQL. That means I have to retry several times before a scrip timeout occurs. If you have read this far then you are an idiot, but the rest of the database seems to work just fine. In fact I can
pull all fields out with no problem. It is just that connection string that
has resulted in causing my pages not to post.

View Replies View Related

How To Use ActiveX For Client PC Using ASP

I have created one ActiveX DLL in VB that has one public function
("GetClientCPUID") which will return a string of the CPUID. I want to use
this to get the clients CPUID and retuern to webserver. I am new to using
activeX in client side.

In Asp how can I send this ActiveX to client browser? (I will instruct my
users to allow this activeX). Is there a way I will execute this activeX in
clients PC and get the return value and return to the server for my
processing? Please suggest the ways that I can do this.

Also suggest what are the situations that I should know before I proceed. I
think there will might a issue when I upgrade the activeX and the client
those are using the current one may face problem so I think I will need a
way to uninstall the register the new one. Code:

View Replies View Related

Client IP Address

how to get client IP address in asp i know there a variable that can get user IP address but which i forgot already, anyone here can tell me

View Replies View Related

Add Client Side

I want to add clinet side javascript on the asp:dropdownlist's onchecked changed event how i do this does any one have any idea.i use the following method in vb.net code behind file

dropdownlist1.Attribuets.add("onCheckedChanged","javascript:aa()")

and see that when i change the option in the list the javascript method aa not fired.

View Replies View Related

Server And Client

I have my asp pages stored in my server ,but when i try and call the asp pages in the clinet side it does not show a portion of the page,the same thing if i call from the server it shows me.

View Replies View Related

Streaming An XLS To The Client

I have a page which allows the user to open one of several spreadsheets by streaming the XLS to the client.

View Replies View Related

Get Client IP Address

I am trying to get the IP address of the Client machine and using the code:

Response.Write(Request.ServerVariables("REMOTE_ADDR"))

But I only get 127.0.0.1

It should be giving the IP address of the system or the gateway. How can I get that.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved