Testing ASP pages in DW CS3?
Hello.
I need to start learning ASP, so I bought a book on it. I
opened up a (very simple) sample ASP page from the accompanying CD
ROM in Dreamweaver (CS3). The page opened and was viewable, but
when I clicked F12 to preview in a browser, the page did not
display. Attached is the full simple code that's on the page. Is
there something else that I need to do in order to get this to
work? Thanks!...
> ...You see, the whole reason this started is because my
boss wanted to me
> learn some sort of new programming language in hopes
that it would
> stimulate
> new ideas for application development. Neither he nor
myself knows
> anything
> about ASP, but I guess he heard something about it
somewhere, so that's
> what he
> picked.
In general, just picking a new language isn't the key to
stimulating new
ideas for app development.
A better approach would be to pick new app development
methods and/or
consider looking at all the various application frameworks
out there.
ASP is pretty much identical to PHP in terms of basic
premise. ASP isn't
being developed by MS anymore, though.
ASP.net is the replacement and is an Object Oriented
Programming language
ala JAVA.
Ruby On Rails is a trendy option these days, so maybe look at
that. It's the
Ruby language written on top of the Rails application
framework. Lots of
proponents of it out there.
> Are ASP and PHP basically the same (I mean, in what they
can achieve)?
In terms of 'what they can achieve' pretty much ANY web
programming language
is going to be 90% alike.
In terms of syntax/logic, ASP and PHP are very close, so no
real benefit in
learning ASP in too much depth (especially since it's not
really developed
by MS anymore).
> a fairly true statement that learning ASP.net after
knowing PHP may just
> be a
> waste of time?
ASP.net is king in the corporate enterprise application
development world.
If that's a direction your company wants to target/head in,
then it makes
sense. If you need to integrate tightly with Microsoft's
other offerings
(office, sharepoint, active directory, MS SQL, etc.) then
ASP.net makes
perfect sense.
Otherwise, I'd say PHP is a really safe place to be. It has a
HUGE market
share, constantly being updated, and so many commercial and
open source
add-ons at your disposal.
-Darrel
Similar Messages
-
Why ASP pages on desktop open in DW CS3
Hello,
I just completed the installation of CS3 on Win XP SP2
machine. Everything seems to work fine, except that when I click on
an ASP file, with the windows explorer, located anywhere on my pc
the file opens in Dreamweaver CS3 instead of in Internet Explorer.
Why is this? What's wrong?
Just in case, Internet Explorer opens ASP files on the
Internet.
Any help would be greatly appreciated.
Thank you,
APNot only is that page invalid HTML (the text needs to be in a
container),
but it also contains no ASP/VBScript, or any connection to a
database.
Notwithstanding that, however, merely opening this page in DW
should not
also fire up IE. And you sure shouldn't get any error on it -
since there
is really nothing there.
Finally, you cannot just OPEN an ASP page from your computer
in IE, you
would have to SERVE it by browsing to -
http://localhost/pathtothefile/filename.asp
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"bombolbi" <[email protected]> wrote in
message
news:[email protected]...
> Wow, I neglected to mention. I do have XP Professional
SP2 with IIS 5.1
> running
> on it.
> I also checked the File Associations in windows
explorere and is showing
> that
> ASP files open with Internet Explorer.
>
> BUT also, I jut noticed am getting the following: If I
open an ASP file
> from
> within Dreamweaver CS3 on my PC, Internet Explorer opens
but almost
> immediately and say say:
>
> Active Server Pages error 'ASP 0201'
>
> Invalid Default Script Language
>
> The default script language specified for this
application
> is
> invalid.
>
>
> The ASP files am trying to open are not linked to an
Access database,
> they're
> simply text files, here is the code of one just in case:
>
> <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
> <!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>
> <meta http-equiv="Content-Type" content="text/html; "
/>
> <title>Untitled Document</title>
> </head>
>
> <body>
>
> THIS IS MY TEST
>
> </body>
> </html>.
>
>
> But both IIS 5 and my asp page indicate that the script
language is
> VBScript.
>
> Any additional thoughts?
> Thanks,
> AP
>
> -
SOAP Response From ASP Page gives Exceptions-Why ?
Hi Friends,
I am trying to call an ASP Page by sending it a SOAP Request.
The SOAP Request reaches the ASP Page but still i am getting lot of
exceptions.This is my code from Request.java
import javax.xml.soap.*;
import java.util.*;
import java.net.URL;
public class Request {
public static void main(String[] args) {
try {
SOAPConnectionFactory scFactory =
SOAPConnectionFactory.newInstance();
SOAPConnection con = scFactory.createConnection();
MessageFactory factory =
MessageFactory.newInstance();
SOAPMessage message = factory.createMessage();
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPHeader header = envelope.getHeader();
SOAPBody body = envelope.getBody();
header.detachNode();
Name bodyName = envelope.createName(
"TestDtls", "m",
"urn:myserver/soap:TestThis");
SOAPBodyElement gltp =
body.addBodyElement(bodyName);
Name name = envelope.createName("PhoneOrigin");
SOAPElement symbol = gltp.addChildElement(name);
symbol.addTextNode("0672324228");
URL endpoint = new URL
("http://john/myservices/testsoap.asp");
message.writeTo(System.out);
SOAPMessage response = con.call(message, endpoint);
response.writeTo(System.out);
SOAPPart sp = response.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPBody sb = se.getBody();
Iterator it = sb.getChildElements(bodyName);
SOAPBodyElement bodyElement =
(SOAPBodyElement)it.next();
String myvalue = bodyElement.getValue();
System.out.print("The Value Retrived is ");
System.out.println(myvalue);
con.close();
} catch (Exception ex) {
System.out.println(ex);
This is what i have in my ASP Page: testsoap.asp
<%
Set objReq = Server.CreateObject("Microsoft.XMLDOM")
objReq.load(Request)
strmycode = "SOAP-ENV:Envelope/SOAP-ENV:Body/m:TestDtls/PhoneOrigin"
varPhoneOrigin=objReq.SelectSingleNode(strmycode).text
status="ok"
strReturn = "<SOAP-ENV:Envelope xmlns:SOAP=""urn:schemas-xmlsoap-org:soap.v1"">" & _
"<SOAP-ENV:Header></SOAP-ENV:Header>" & _
"<SOAP-ENV:Body>" & _
"<m:TestDtlsResponse xmlns:m=""urn:myserver/soap:TestThis"">" & _
"<PhoneStatus>" & Status & "</PhoneStatus>" & _
"</m:TestDtlsResponse>" & _
"</SOAP-ENV:Body>" & _
"</SOAP-ENV:Envelope>"
Response.Write strReturn
%>
The Exceptions i get are as follows:
=====================================
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><S
OAP-ENV:Body><m:TestDtls xmlns:m="urn:myserver/soap:TestThis"><PhoneOrigin>"0672
324228"</PhoneOrigin></m:TestDtls></SOAP-ENV:Body></SOAP-ENV:Envelope>Jul 11, 20
03 6:37:35 PM com.sun.xml.messaging.saaj.soap.MessageImpl identifyContentType
SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of a S
OAP message
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is
this an error message instead of a SOAP response?
at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(Messa
geImpl.java:268)
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:1
35)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1
_1Impl.java:45)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.crea
teMessage(SOAPMessageFactory1_1Impl.java:32)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOA
PConnection.java:361)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
ost.run(HttpSOAPConnection.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOA
PConnection.java:126)
at Request.main(Request.java:34)
Jul 11, 2003 6:37:35 PM com.sun.xml.messaging.saaj.soap.MessageImpl <init>
SEVERE: SAAJ0535: Unable to internalize message
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize message
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:2
02)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1
_1Impl.java:45)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.crea
teMessage(SOAPMessageFactory1_1Impl.java:32)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOA
PConnection.java:361)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
ost.run(HttpSOAPConnection.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOA
PConnection.java:126)
at Request.main(Request.java:34)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:te
xt/html. Is this an error message instead of a SOAP response?
at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(Messa
geImpl.java:268)
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:1
35)
... 7 more
CAUSE:
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is
this an error message instead of a SOAP response?
at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(Messa
geImpl.java:268)
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:1
35)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1
_1Impl.java:45)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.crea
teMessage(SOAPMessageFactory1_1Impl.java:32)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOA
PConnection.java:361)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
ost.run(HttpSOAPConnection.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOA
PConnection.java:126)
at Request.main(Request.java:34)
CAUSE:
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html. Is
this an error message instead of a SOAP response?
at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(Messa
geImpl.java:268)
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:1
35)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1
_1Impl.java:45)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.crea
teMessage(SOAPMessageFactory1_1Impl.java:32)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOA
PConnection.java:361)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
ost.run(HttpSOAPConnection.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOA
PConnection.java:126)
at Request.main(Request.java:34)
java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptio
nImpl: Unable to internalize message
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOA
PConnection.java:126)
at Request.main(Request.java:34)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to internalize m
essage
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:2
02)
at com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.<init>(Message1
_1Impl.java:45)
at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.crea
teMessage(SOAPMessageFactory1_1Impl.java:32)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOA
PConnection.java:361)
at com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedP
ost.run(HttpSOAPConnection.java:156)
... 3 more
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:te
xt/html. Is this an error message instead of a SOAP response?
at com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(Messa
geImpl.java:268)
at com.sun.xml.messaging.saaj.soap.MessageImpl.<init>(MessageImpl.java:1
35)
... 7 more
Actually,i need to see the response in XML format as per my program.
But,What does all this stuff mean ? I have using latest jwsdp 1.2.
Can Anyone Help me on this ?i have the same problem. when i make a test with a VB client, the SOAP message is builded this way "<SOAP.... instead of <SOAP-ENV.... tag generated by java. When a make a test in vb client using this syntax (SOAP-ENV), the asp page returns a error:
<font face="Arial" size=2>
<p>Microsoft VBScript runtime </font> <font face="Arial" size=2>error '800a01a8'</font>
<p>
<font face="Arial" size=2>Object required: 'objXMLDOM.selectSingleNode(...)'</font>
<p>
<font face="Arial" size=2>/rcruz/soap/vbSoap/simplesoap.asp</font><font face="Arial" size=2>, line 6</font>
Anyone have a idea???
Thanks -
Error in the test (test.asp) of IIS for Exchange2000 portlet
To verify ASP access to my IIS and Exchange server,
the test.asp return me the following error:
Error Type:
Active Server Pages, ASP 0241 (0x80004005)
The CreateObject of '(null)' caused exception C0000005.
/exchange_portlet/test.asp
Thanks a lot for your help!!since the function is defined in your db, it only makes sense in a query that gets data from you database
the xquery for that would be something like ...
for $business_row in BUSINESS_TABLE()
where $business_row/BUS_ID = $mycode
return
get_trade_name( $business_row/BUS_ID )
then ODSI can generate the sql ...
select get_trade_name ( BUS_ID ) from BUSINESS_TABLE where BUS_ID = ? -
HttpConnection.POST to an ASP page
First - I'm new to J2ME & I'm a novice to java in general. I'm an ASP programmer & I need to write an app for a nextel phone in J2ME.
I have written a test application that just sends an http request to my asp page and the page should send back the appropriate response to be displayed on the phone, however the asp page does not seem to be receiving the data. However it IS sending back a response. I have tried removing flush() from the dataOutputStream, but that didn't fix the problem. Here is the code inside my MIDlet:
private void loginViaHTTPConnection(String strLogin) throws IOException {
HttpConnection hconn = null;
InputStream is = null;
OutputStream os = null;
StringBuffer data = new StringBuffer();
try {
hconn = (HttpConnection)Connector.open(url);
hconn.setRequestMethod(HttpConnection.POST);
hconn.setRequestProperty("IF-Modified-Since",
"20 Jan 2001 16:19:14 GMT");
hconn.setRequestProperty("User-Agent",
"Profile/MIDP-2.0 Configuration/CLDC-1.0");
hconn.setRequestProperty("Content-Language", "en-CA");
os = hconn.openOutputStream();
// send request to the ASP script
String str = "PIN=" + strLogin;
byte postmsg[] = str.getBytes();
for(int i=0;i < postmsg.length;i++) {
os.write(postmsg);
//os.flush();
//receive response
is = hconn.openDataInputStream();
int ch;
while((ch = is.read()) != -1) {
data.append((char) ch);
} finally {
if(is!= null) {
is.close();
if(os != null) {
os.close();
if(hconn != null) {
hconn.close();
resultItem.setText(data.toString());
display.setCurrent(resultScreen);
The ASP code is:
<%
PIN = request("PIN")
If PIN = "" Then
response.write "INVALID"
Else
response.write "GOOD"
End If
%>
The response returned is always "INVALID" no matter what I pass it.
Any help would be greatly appreciated.deepspace
Thank you, Thank you, Thank you!!!
That worked like a charm.
Working Code in case anyone's interested:
private void loginViaHTTPConnection(String strLogin) throws IOException {
HttpConnection hconn = null;
InputStream is = null;
OutputStream os = null;
StringBuffer data = new StringBuffer();
try {
String str = "PIN=" + strLogin + '\r';
hconn = (HttpConnection)Connector.open(url);
hconn.setRequestProperty("IF-Modified-Since",
"20 Jan 2001 16:19:14 GMT");
hconn.setRequestProperty("User-Agent",
"Profile/MIDP-2.0 Configuration/CLDC-1.0");
hconn.setRequestProperty("Content-Language", "en-CA");
hconn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
hconn.setRequestMethod(HttpConnection.POST);
// Send request to ASP page
os = hconn.openOutputStream();
os.write(str.getBytes());
os.flush();
//receive response
is = hconn.openDataInputStream();
int ch;
while((ch = is.read()) != -1) {
data.append((char) ch);
} finally {
if(is!= null) {
is.close();
if(os != null) {
os.close();
if(hconn != null) {
hconn.close();
resultItem.setText(data.toString());
display.setCurrent(resultScreen);
} -
ASP pages and Oracle ODBC Driver
I have a number of ASP pages that need to be updated to connect to Oracle using the ORACLE ODBC driver. Currently, these pages connect using the Microsoft ODBC driver for Oracle. I do not know of all the details yet as I havent seen the pages or network for which they reside on and I havent been supplied with details on version information. I would assume I am working with recent versions of all software.
What Im curious about is if anyone has done this sort of driver change before and if you have any suggestions on how I would go about doing this, or if there are things that I need to be aware of that arent evident at first glance.
Again, I am switching from the odbc driver provided by Microsoft to a version of the odbc driver provided by Oracle.
Thanks for any and all information.I'll assume that there is some reason that necessitates switching drivers. If there's not going to be a benefit, I'd suggest not changing.
That said, changing drivers should be relatively painless. If your ASP makes database connections using DSN's, simply go to the ODBC Data Source Administrator, rename the old Microsoft DSN, and create a new DSN using the Oracle driver with the name your ASP is looking for. If your ASP specifies the ODBC driver in its connect string, you'll have to modify all the ASP connect strings to use the Oracle driver. If all goes well, your ASP will now be up & running using the Oracle driver.
As we all know, however, reality and theory are often at odds with each other. While your ASP should be connecting to the database correctly when you make these changes, please do some thorough testing to verify that everything works like you expect. The ODBC specification permits drivers to have a variety of behaviors in certain conditions. Applications written with one ODBC driver often end up relying on one of these behaviors, and may break when the ODBC driver changes.
Justin Cave
ODBC Development -
Multi page recordset output from ASP page on Spry Tabbed Panel Widget
I am using a simple Spry Tabbed panel set on my asp page to show the output from different ASP pages, inside the tabbed panels. The tabbed panels on the page under consideration (destination page) display the output from different asp pages (source pages). The source asp pages generate multi page outputs which are paginated on the source page itself and pagination links are displayed on the source page itself.
However, we dont want to display the source page outside of the tabbed panel, but instead the output content from the source asp pages should show inside the tabbeed panels only. The first page generated by the source asp page displays correctly inside the tabbed panel. However, when the user clicks on the links for the next page generated by the source asp page, but which is being displayed inside the destination page tabbed panel, they dont display the next page inside the tabbed panel. Instead the source asp page displays the output outside the tabbed panel destination page.
Please advise on how to ensure that the user can page through the recordset generated by the source asp page by clicking on the pagination links at the bottom of the records, while ensuring that the output displays within the tabbed panels on the destination asp page.
I am enclosing the source code being used to generate the spry tabbed panel widget and also updating it with the output from the source asp page. In this case, the code given below is from the main page containing the widget and the source asp page is "sample.asp", which generates multi page output.
Please note that I am not too keen on using xml data sets output from the source asp page, but would be more comfortable with directly using the asp pages to fill the tabbed panel content.
Please help
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<script language="javascript" src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<script src="/SpryAssets/xpath.js" type="text/javascript"></script>
<script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
<link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0" onclick="Spry.Utils.updateContent('two','sample.asp?page=' <%=i%>); Spry.Data.initRegions();" >Tab 1</li>
<li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
</ul>
<div class="TabbedPanelsContentGroup">
<div id=two class="TabbedPanelsContent">Content 1</div>
<div class="TabbedPanelsContent">Content 2</div>
</div>
</div>
<script type="text/javascript">
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
</script>
</body>I fully agree that the problem does not lie with tthe tabbed panels.
The solution would probably be first required to be tried using ajax on any div tab.
Then the same code would have to be used on Sprytabbed panel. Hence, the following may be advised:
1. Sample code for server side pagination and displaying inside any div tag and refreshing it using ajax. the update link would also lie inside the div tag which would show the next/ previous page without reloading the page.
2. Then adapting the refresh technique using ajax in the Spry Tabbed panel using the inbuilt updatecontent method of the Spry Tabbed panels.
In order to achieve the above, I am getting the recordset output in the tab content as expected. The recordset is also getting the pagination links from server side asp as required.
However, it is also generating the following error.
Webpage error details
Message: Unterminated string constant
Line: 9
Char: 56
Code: 0
URI: http://localhost/test/test5.asp
The sourcecode is as given below. If you can help with the error indicated above, my problem would probably get solved.
<html><head>
<title>Untitled Document</title>
<link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
<script src="/SpryAssets/SpryURLUtils.js" type="text/javascript"></script>
<script src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
<script src="/SpryAssets/xPath.js" type="text/javascript"></script>
</head>
<body>
<div id="TabbedPanels1" class="TabbedPanels">
<ul class="TabbedPanelsTabGroup">
<li class="TabbedPanelsTab" tabindex="0" onclick="Spry.Utils.updateContent('one','untitled-5.asp');">Tab 1</li>
<li class="TabbedPanelsTab" tabindex="0" >Tab 2</li>
</ul>
<div class="TabbedPanelsContentGroup">
<div id=one class="TabbedPanelsContent">Content 1</div>
<div id ="two" class="TabbedPanelsContent">Content 2</div>
</div>
</div>
<script type="text/javascript">
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
</script>
</body>
</html> -
Safari not opening .asp pages
safari not opening .asp pages
i am running safari 6.0.5I can't test because I don't have a login, but you can try the following.
From the Safari menu bar, select
Safari ▹ Preferences ▹ Extensions
Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.
If you wish, you may be able to salvage the malfunctioning extension by uninstalling and reinstalling it. That will revert its settings to the defaults. -
Send data from flash to a popup ASP page
how can I send data from a flash webpage to an ASP page which
has to open in a popup window.
I can do them both seperatly, but how to integrate those 2 in
1....
Here's my script...I'm not sure if this will work, so you'll have to forgive me
if I'm way off here. I use php for all my server-side goodness. I
recently was doing sort of the same thing, but what I did to solve
it was this (oversimplified of course)...
variableSTRING =
"?variableA=valueONE&variableB=valueTWO";
getURL("javascript:popup('
http://test.php"+variableSTRING+"
','myPopUp',800,600)");
does that help? -
Working on BBPCRM 3.1 having this dump when testing web pages. Page contains the typical start pages of SAP hello world and a simple button...
Runtime Errors TEXTENV_INVALID
Exception CX_SY_LOCALIZATION_ERROR
Occurred on 19.09.2005 at 09:48:01
Error when generating text environment.
What happened?
What can you do?
Error analysis
How to correct the error
System environment
User, transaction...
Information on where terminated
Source code extract
001550 DLI_UPDATE = 'X'
001560 UPDCHK = 'U'
001570 EXCEPTIONS
001580 OTHERS = 1.
001590 COMMIT WORK.
001600 WHEN OTHERS.
001610 ENDCASE.
001620 ENDIF.
001630
001640 ENDIF. " updchk = c
001650
001660 * update the data
001670 IF UPDCHK EQ 'U'.
001680 IF FOL_UPDATE NE SPACE.
001690 * update for folder definitions
001700 PERFORM V_SOFD_PUBSEL(SAPFSSO6)
001710 TABLES V_SOFD_TAB
001720 USING RCODE.
001730 PERFORM SOFIND_SELARR_ALL_FOL(SAPFSSO6)
001740 TABLES SOFIND_TAB
001750 USING RCODE.
001760 SORT SOFIND_TAB. " yxu170797
001770 LOOP AT V_SOFD_TAB INTO V_SOFD_REC.
001780 CLEAR SOFIND_REC.
001790 MOVE: V_SOFD_REC-MANDT TO SOFIND_REC-MANDT,
001800 FLN TO SOFIND_REC-TYPE,
001810 V_SOFD_REC-OBJNAM TO SOFIND_REC-OBJDES,
001820 V_SOFD_REC-FOLTP TO SOFIND_REC-OBJTP,
001830 V_SOFD_REC-FOLYR TO SOFIND_REC-OBJYR,
001840 V_SOFD_REC-FOLNO TO SOFIND_REC-OBJNO.
> SET LOCALE LANGUAGE V_SOFD_REC-OBJLA.
001860 TRANSLATE SOFIND_REC-OBJDES TO UPPER CASE.
001870 SET LOCALE LANGUAGE SPACE.
001880 READ TABLE SOFIND_TAB INTO SOFIND_TAB_REC
001890 WITH KEY MANDT = SOFIND_REC-MANDT
001900 TYPE = SOFIND_REC-TYPE
001910 OBJDES = SOFIND_REC-OBJDES
001920 OBJTP = SOFIND_REC-OBJTP
001930 OBJYR = SOFIND_REC-OBJYR
001940 OBJNO = SOFIND_REC-OBJNO
001950 BINARY SEARCH.
001960 IF SY-SUBRC NE 0.
001970 APPEND SOFIND_REC TO SOFIND_INS_TAB.
001980 ELSE.
001990 DELETE SOFIND_TAB INDEX SY-TABIX.
002000 ENDIF.
002010 CLEAR SOFIND_REC.
002020 MOVE: V_SOFD_REC-MANDT TO SOFIND_REC-MANDT,
002030 FLD TO SOFIND_REC-TYPE,
002040 V_SOFD_REC-OBJDES TO SOFIND_REC-OBJDES,
Contents of system fields
SY field contents..................... SY field contents.....................
SY-SUBRC 0 SY-INDEX 0
SY-TABIX 1 SY-DBCNT 2
SY-FDPOS 0 SY-LSIND 0
SY-PAGNO 0 SY-LINNO 1
SY-COLNO 1 SY-PFKEY
SY-UCOMM SY-TITLE Update control
SY-MSGTY SY-MSGID
SY-MSGNO 000 SY-MSGV1
SY-MSGV2 SY-MSGV3
SY-MSGV4
Active calls / events
No.... Type........ Name..........................
Program
Include Line
Class
6 FUNCTION SO_SOFIND_UPDATE
SAPLSOC3
LSOC3U11 185
5 FORM SO_SOFIND_UPDATE
SAPLSOC3
LSOC3V11 35
4 FORM VB_CALL_FUNC
RSM13000
RSM13000 5441
3 FORM VB_V1_EXEC
RSM13000
RSM13000 5182
2 FORM VB_V1_NORMAL
RSM13000
RSM13000 3944
1 MODULE (PBO) VBEXEC
RSM13000
RSM13000 3793
Chosen variables
6 FUNCTION SO_SOFIND_UPDATE
SAPLSOC3
LSOC3U11 185
DLI_UPDATE
2
0
FOL_UPDATE X
5
8
UPDCHK U
5
5
V_SOFD_TAB Table IT_1[2x141]
RCODE 0
0000
0000
SYST-REPID SAPLSOC3
5454544322222222222222222222222222222222
310C3F3300000000000000000000000000000000
SOFIND_TAB Table IT_2[2x73]
ROLE_MAILER 4
3
4
V_SOFD_REC 100FOL28000000000001 D#
3334443333333333333322222222222222222422
1006FC2800000000000100000000000000000430
... + 40 #
2222222222222222222222222222222222222222
0000000000300000000000000000000000000000
... + 80 Q 0
2222222222222222222252222222222222222223
0000000000000000000010000000000000000000
... + 120 000120050808 20050808
333333333333233333333
000120050808020050808
VWST VWST
5555222222222222222222222222222222222222
6734000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
SOFIND_REC 100FLN#
3334442222222222222222222222222222222222
1006CE3000000000000000000000000000000000
... + 40 FOL28000000000001
222222222222222244433333333333333
00000000000000006FC28000000000001
SENDMAIL_TOKEN_NOT_FOUND 90
0005
000A
USDI USDI
5544222222222222222222222222222222222222
5349000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
SPOOL_READ_ERROR 56
0003
0008
SY-REPID SAPLSOC3
5454544322222222222222222222222222222222
310C3F3300000000000000000000000000000000
SOFIND_REC-OBJDES #
2222222222222222222222222222222222222222
3000000000000000000000000000000000000000
... + 40
2222222222
0000000000
V_SOFD_REC-OBJNAM #
222222222222
300000000000
SCR SCR
545
332
USRE USRE
5554222222222222222222222222222222222222
5325000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
OBJ OBJ
444
F2A
USSA USSA
5554222222222222222222222222222222222222
5331000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
URL URL
554
52C
USSI USSI
5554222222222222222222222222222222222222
5339000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
%_DUMMY$$
2222
0000
DX40 DX40
4533222222222222222222222222222222222222
4840000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
SOFIND_TAB_REC
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
222222222222222222222222222222222
000000000000000000000000000000000
ATTA ATTA
4554222222222222222222222222222222222222
1441000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
OFFICE_TASO13 SO13
5433222222222222222222222222222222222222
3F13000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
SOFIND_REC-MANDT 100
333
100
OFFICE_TASO14 SO14
5433222222222222222222222222222222222222
3F14000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
SOFIND_REC-TYPE FLN
444
6CE
OFFICE_TASO15 SO15
5433222222222222222222222222222222222222
3F15000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
5 FORM SO_SOFIND_UPDATE
SAPLSOC3
LSOC3V11 35
ROLE_SUBST_ACTIVE 3
3
3
%_STATE Y
5
9
%_PRINT 000
2222333222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80 0 ########
2222222222320000000022222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160 0 ####
222222222222223222222222222222220000
000000000000000000000000000000000000
URLA URLA
5544222222222222222222222222222222222222
52C1000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
%_KEY 432D0497CD9B3890E1000000AC101A01####
333433334434333343333333443334330000
432404973492389051000000131011010001
SY-SUBRC 0
0000
0000
REMA REMA
5444222222222222222222222222222222222222
25D1000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
%_P0000000001 X
5
8
RERE RERE
5454222222222222222222222222222222222222
2525000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
%_P0000000002
2
0
REPA REPA
5454222222222222222222222222222222222222
2501000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
%_P0000000003 U
5
5
SY-XFORM
222222222222222222222222222222
000000000000000000000000000000
4 FORM VB_CALL_FUNC
RSM13000
RSM13000 5441
SAVE_VBPARAM #
0
3
VBPARAM 432D0497CD9B3890E1000000AC101A010001SO_S
3334333344343333433333334433343333335455
4324049734923890510000001310110100013FF3
... + 40 OFIND_UPDATE PSAKINDI 10
4444455544542222222222222255444444222233
F69E4F50414500000000000000031B9E49000010
... + 80 0### ##
3000222222222222222222222222222220022222
0612000000000000000000000000000001100000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160
2222222222222222222
0000000000000000000
VBHDR-VBTCODE SO00
54332222222222222222
3F000000000000000000
VBHDR-VBREPORT SAPLSOC3
5454544322222222222222222222222222222222
310C3F3300000000000000000000000000000000
VBMODCNT 1
0000
0001
DLDE DLDE
4444222222222222222222222222222222222222
4C45000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
VBPARAM-VBPHASE 16916512
0
1
VB_V1_TEST #
0
2
SYST-REPID RSM13000
5543333322222222222222222222222222222222
23D1300000000000000000000000000000000000
HGEN HGEN
4444222222222222222222222222222222222222
875E000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
IS_A_ARFC #
0
0
TH_TRUE #
0
1
OFFICE_TASO00 SO00
5433222222222222222222222222222222222222
3F00000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
TH_FALSE #
0
0
VBDEBUG 35659808
0
2
VBSELECT-VBANZAHL 00000
33333
00000
EWST EWST
4555222222222222222222222222222222222222
5734000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
BACK BAC
4442222222222222222222222222222222222222
2130000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
TFDIR SO_SOFIND_UPDATE SAPLSOC3
5455444445554454222222222222225454544322
3FF3F69E4F50414500000000000000310C3F3300
... + 40 1100000000
2222222222222222222222222222223333333333
0000000000000000000000000000001100000000
... + 80 S 1
52222222222223
30000000000001
TFDIR-PNAME SAPLSOC3
5454544322222222222222222222222222222222
310C3F3300000000000000000000000000000000
VBFUNC SO_SOFIND_UPDATE
545544444555445422222222222222
3FF3F69E4F50414500000000000000
%_DUMMY$$
2222
0000
VBID 432D0497CD9B3890E1000000AC101A01####
333433334434333343333333443334330000
432404973492389051000000131011010001
VBSTAT-PROC2_REQ
222222222222222
000000000000000
VB_UPDATE_MODUL_PROCESSED #
1
C
3 FORM VB_V1_EXEC
RSM13000
RSM13000 5182
ROLE_SUBST_ACTIVE 3
3
3
VBMOD_TABL-VBMODE 1
3
1
VB_COLLECTOR_FB 5
3
5
SY-REPID RSM13000
5543333322222222222222222222222222222222
23D1300000000000000000000000000000000000
LISL LISL
4454222222222222222222222222222222222222
C93C000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
EXISTS_COLLECTOR #
0
0
VB_V1_FB 1
3
1
VB_V1_NO_UPD_AGAIN_FB 3
3
3
VBHDR-VBSTATE -16759503
F
F
VB_V1_PROCESSED #
0
1
VB_V1_AND_V2_PROCESSED #
0
2
SYST ########################################
0000000000000000000000000000000000000000
0000000000010002000000000000000000000000
... + 40 ########################################
0000000000000000000000090000000000000008
00020000000100000001000A000000000000000D
... + 80 ########################################
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
... + 120 ########################################
0000000000000000000000000000000000010009
00000000000000000000000000000000000B0000
... + 160 ################X ############# E0 3
0000000000000000520000000000000222432223
0000000000000000800010000C0000C000500003
... + 200 000 N ####__S 100
3332222222420000555222222222222222223332
0000000000E00000FF3000000000000000001000
... + 240 00
222223322222222
000000000000000
MTAS MAS
4452222222222222222222222222222222222222
D130000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
VBMOD_TABL-VBKEY 432D0497CD9B3890E1000000AC101A01
33343333443433334333333344333433
43240497349238905100000013101101
VBMOD_TABL-VBFUNC SO_SOFIND_UPDATE
545544444555445422222222222222
3FF3F69E4F50414500000000000000
VBMOD_TABL-VBMODCNT 1
0000
0001
LOC_VBPARAM-VBPHASE 16916512
0
1
LOC_VBPARAM-VBDEBUG 35659808
0
2
READ READ
5444222222222222222222222222222222222222
2514000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
EXISTS_V2 #
0
0
SPACE
2
0
NEW_VBSTATE 0
0
0
VBHDR 432D0497CD9B3890E1000000AC101A01100PSAKI
3334333344343333433333334433343333355444
43240497349238905100000013101101100031B9
... + 40 NDI SAPLSOC3
4442222222222222222545454432222222222222
E490000000000000000310C3F330000000000000
... + 80 SO00
2222222222222222222543322222222222222222
00000000000000000003F0000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160 ###�sapzoo_SMG_00
22222222222222222222000F7677665544533222
00000000000000000000000F310AFFF3D7F00000
... + 200
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 240 :E:
222222223432222
00000000A5A0000
OFFICE_TASO18 SO18
5433222222222222222222222222222222222222
3F18000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
LOC_VBPARAM 432D0497CD9B3890E1000000AC101A010001SO_S
3334333344343333433333334433343333335455
4324049734923890510000001310110100013FF3
... + 40 OFIND_UPDATE PSAKINDI 10
4444455544542222222222222255444444222233
F69E4F50414500000000000000031B9E49000010
... + 80 0### ##
3000222222222222222222222222222220022222
0612000000000000000000000000000001100000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160
2222222222222222222
0000000000000000000
SY-XPROG
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
SY-XFORM
222222222222222222222222222222
000000000000000000000000000000
2 FORM VB_V1_NORMAL
RSM13000
RSM13000 3944
VBHDR-VBCLIINFO #
0
0
VB_SYNC_VB #
0
1
%_ARCHIVE
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 80
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 200
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 240
222222222222222
000000000000000
SY-MSGID
22222222222222222222
00000000000000000000
ROOM_TAPP30 PP30
5533222222222222222222222222222222222222
0030000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
ADMI ADM
4442222222222222222222222222222222222222
14D0000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
SY-MSGNO 000
333
000
NOTE_NOT_ADDED 11
0000
000B
SY-MSGV1
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222
0000000000
SY-MSGV2
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222
0000000000
SY-MSGV3
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222
0000000000
SY-MSGV4
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 40
2222222222
0000000000
LOGO LOG
4442222222222222222222222222222222222222
CF70000000000000000000000000000000000000
... + 40
222222222222222222222222222222
000000000000000000000000000000
VBHDR 432D0497CD9B3890E1000000AC101A01100PSAKI
3334333344343333433333334433343333355444
43240497349238905100000013101101100031B9
... + 40 NDI SAPLSOC3
4442222222222222222545454432222222222222
E490000000000000000310C3F330000000000000
... + 80 SO00
2222222222222222222543322222222222222222
00000000000000000003F0000000000000000000
... + 120
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 160 ###�sapzoo_SMG_00
22222222222222222222000F7677665544533222
00000000000000000000000F310AFFF3D7F00000
... + 200
2222222222222222222222222222222222222222
0000000000000000000000000000000000000000
... + 240 :E:
222222223432222
00000000A5A0000
1 MODULE (PBO) VBEXEC
RSM13000
RSM13000 3793
VB_V1_NORMAL #
0
1
%_SPACE
2
0
STOP RET
Hi Stephan,
unless we don't ask for it, please do not post this much content. This might be suitable for support messages, but not for this forum. There might be situations where you get asked for more information, but a post like this one just scares of anyone who might know an answer.
Also, your thread title does not give any information on your problem, as a "dump when testing web pages" can be anything.
I would suggest to re-state your question, just giving the information that others need.
I haven't worked with CRM, but I wonder if this is a custom application or a shipped one. -
How to create a asp page in dreamweaver cc 2014
How in the hec do I create an asp page in Dreamweaver CC.
I installed the database, server behaviors. I can create a PHP page and add database connections for that type but not Asp?
Help anyone?
Thanks TraciCreate a new HTML document.
Go to File > SaveAs > filename.asp
Nancy O. -
Running a java program from a .asp page
i'm looking for someone in the community that knows how to run a java program
on a web server ( not an applet) from a asp page. The server as IIS 5 and the jre1.3.1
any help or tips would be welcomedThe following site explains in detail how you have to do it. I have done it and it works fine.
If u still have problems, contact me at [email protected]
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q167941 -
Do I need to pay $99/year per employee just to test web pages on IOS simulator?
Hi there, I run a small web development shop with 5 employees. We all bought Xcode through the app store and have been using the iOS simulator to test web pages and troubleshoot problems with our customers sites on iPhones and iPads.
I just upgraded to Mountain Lion, and it seems I lost my iOS simulator. I tried to install it through XCode again, and it says I need a developer account, which is $99/year.
We don't develop apps, we just use the simulator to view websites locally and on the web. Does this mean if I want all of my employees to be able to just simply use the simulator to view web pages, that I have to pay $500 per year to Apple? Am I missing something here? Why could we use the simulator's basic features for free under Snow Leopard, but not under Mountain Lion with the new version of the simulator?
Please tell me I'm an idiot and am just missing something about how to install it or configure it. Thanks so much for your help!See, I am an idiot. It was right there. Somehow I think Alfred lost how to launch the simulator in the update to Mountain Lion. Since I couldn't launch it like I used to, I dug around until I found the Preferences > Downloads screen and had the option to install "iOS 5.0 Simulator" which is when I was prompted to get a developer license.
I never found the Xcode > Open Developer Tool method of locating it.
Anyway, thanks so much for your time! -
How do I create an update form, in a search.asp page.
I have a search.asp page which when submitted transfers to
the results.asp page. In the search I would like to also create an
insert statement. The search.asp page has the following.
Form: searchForm (Post)
Text Field: KeywordSearch
List Menu: CategoryTable
List Menu: Location
Button: Search
When a client enters data in the search.asp page, I would
like for the data, to be submitted to a database at the same time
it searches the database. This using an insert statement. The
reason for this is so that we can see what everyone is searching
for.
The database/table we created has the following.
Table: tblSearches
Field: idSearch (Auto Number)
Field: location (Text)
Field: category (Text)
Field: user (Text)
Field: keyWord (Text)
At the moment I cant create an insert form because of the
form that already exists in the search.asp page.
Can anyone suggest how to do this.
Ideally it would be good to be able to combine two forms into
one, but I am told that this is not possible.
TA
Mally.Oh, I see. So is it Dreamweaver that wont let you create the
insert statement using a form that is already submitting to a
results.asp page? So if I create the insert statement by had it
should work? -
Calling the ASP page through a BSP application
Hi,
We are in the process of implementing Digital signature for SRM cFolders.
BSP application : CFX_RFC_UI
Pages with flow logic : doc_de_download
The digitally signed files are uploaded to the cFolders.On click of a
particular file in cFolders, the 'ASP' page residing on the server in IIS
vertual directory i.e. 'verifyfile.asp' should get called.This ASP page has
the logic to verify the signed file.
The signed file resides on the file system in the same vertual directory.
As a result we want to post a message on the screen which
will be the output of the ASP page logic.
Please suggest the way to achieve this.
Regards,
Nilesh
Message : ---
<b>Verification Successful</b>
Certificate Details
The certificate is valid
CRL Status: Certificate Revocation Status is Unknown: CRL Not checked
Email Id: [email protected]
Issuer Name: ock Demo Certification Authority
Serial Number: 15 65 7a 0a 00 00 0d d9
Subject Name: Email Address = [email protected] | Country = US
| StateOrProvince = VA | Locality = McLean | Organization = Technologies Corporation | Organizational Unit = ock Demo | Common Name = Valid ock |
ThumbPrint: 16 00 c1 f4 76 aa 57 f2 20 27 0f 21 44 9e 08 9d 61 ca dd 95
Valid From: Monday, April 10 2006,02:19:58
<i><b>The code in OnInitialization event handler is as follows :----</b></i>
* doc_de_download.htm
DATA lp_root_exception TYPE REF TO cx_root.
DATA lp_doc TYPE REF TO cl_cfx_document.
DATA l_cur_ver_id TYPE guid_32.
DATA lp_col_app TYPE REF TO cl_cfx_col_application.
DATA lp_col TYPE REF TO cl_cfx_collaboration.
DATA : icontent type table of sdokcntbin.
data : w_tmpcontent TYPE sdokcntbin.
**** Data declaration
data : g_folder_path TYPE btcxpgpar value 'usrsapDigitally signed files',
g_md(100) TYPE c,
g_file_path TYPE string,
g_system TYPE rfcdisplay-rfchost,
g_os TYPE sxpgcolist-opsystem,
g_file_size TYPE string,
g_mime_type TYPE string,
g_file_ext TYPE string,
g_len1 TYPE i,
g_var TYPE c,
g_out_file TYPE c LENGTH 600,
g_file_count TYPE p,
g_table_lines TYPE p,
g_counter TYPE p VALUE 1,
g_flag TYPE c.
DATA : i_doc_id TYPE sysuuid_c.
CONSTANTS : c_dot TYPE c VALUE '.'.
TRY.
IF NOT p_refresh IS INITIAL.
cl_cfx_ui_application=>delete_instance( ).
ENDIF.
TRANSLATE p_col_id TO UPPER CASE. "Just in case...
TRANSLATE p_area_id TO UPPER CASE. "Just in case...
TRANSLATE p_topic_id TO UPPER CASE. "Just in case...
TRANSLATE p_doc_id TO UPPER CASE. "Just in case...
TRANSLATE p_ver_id TO UPPER CASE. "Just in case...
TRANSLATE p_save TO UPPER CASE. "Just in case...
* initialize in case of server state timeout
IF ( NOT p_col_id IS INITIAL ) AND
( NOT p_area_id IS INITIAL ) AND
( NOT p_topic_id IS INITIAL ).
CALL METHOD cl_cfx_context_ui=>initialize
EXPORTING
i_col_id = p_col_id
i_area_id = p_area_id
i_topic_id = p_topic_id
i_doc_id = p_doc_id
i_object_type = cfxf1_sc_doc_type_document.
ENDIF.
IF NOT p_col_id IS INITIAL.
lp_col_app = cl_cfx_col_application=>get_instance( ).
lp_col = lp_col_app->get_collaboration( p_col_id ).
ENDIF.
* Do we need to prepare to checkout this document?
cl_cfx_doc_ui=>get_docref_safe(
EXPORTING
i_guid = p_doc_id
IMPORTING
ep_docref = lp_doc ).
IF ( NOT p_filepath IS INITIAL ) AND ( p_do_lock = 'X' ).
l_cur_ver_id = lp_doc->if_cfx_versioning~get_current_version( ).
IF l_cur_ver_id = p_ver_id.
* OK, prepare checkout
TRY.
lp_doc->if_cfx_document~lock( ).
CATCH cx_root.
ENDTRY.
ENDIF.
ENDIF.
data: lt_formfields type TIHTTPNVP,
l_formfield type IHTTPNVP,
l_request type STRING.
data: lt_headerfields type TIHTTPNVP,
l_headerfield type IHTTPNVP.
CALL METHOD request->get_form_fields
CHANGING
fields = lt_formfields.
CALL METHOD request->get_header_fields
CHANGING
fields = lt_headerfields.
* CALL METHOD cl_cfx_doc_ui=>retrieve_content
* EXPORTING
* ip_navigation = navigation
* ip_response = response
* ip_runtime = runtime
* i_col_id = p_col_id
* i_area_id = p_area_id
* i_topic_id = p_topic_id
* i_doc_id = p_doc_id
* i_ver_id = p_ver_id
* i_save = p_save.
* Do we need to checkout this document?
cl_cfx_doc_ui=>get_docref_safe(
EXPORTING
i_guid = p_doc_id
IMPORTING
ep_docref = lp_doc ).
IF ( NOT p_filepath IS INITIAL ) AND ( p_do_lock = 'X' ).
* l_cur_ver_id = lp_doc->if_cfx_versioning~get_current_version( ).
IF l_cur_ver_id = p_ver_id.
* OK, do checkout
TRY.
CALL METHOD cl_cfx_doc_ui=>mark_doc_as_checked_out
EXPORTING
ip_doc = lp_doc
i_filepath = p_filepath.
CATCH cx_root.
ENDTRY.
ENDIF.
ENDIF.
i_doc_id = p_ver_id.
CALL FUNCTION 'CFX_API_DOC_DOCUMENT_READ'
Exporting
i_doc_version_id = i_doc_id
IMPORTING
e_file_path = g_file_path
e_file_size = g_file_size
e_mime_type = g_mime_type
e_file_ext = g_file_ext
TABLES
et_content = icontent.
****** Download document
IF NOT icontent[] IS INITIAL.
*** PERFORM sub_download_file USING g_file_path.
CONCATENATE g_folder_path g_file_path
INTO g_out_file.
OPEN DATASET g_out_file FOR OUTPUT IN BINARY MODE.
IF sy-subrc = 0.
LOOP AT icontent INTO w_tmpcontent.
TRANSFER w_tmpcontent TO g_out_file.
ENDLOOP.
ENDIF.
CLOSE DATASET g_out_file.
CLEAR g_out_file.
ENDIF.
CLEAR: p_area_id, p_col_id, p_doc_id, p_save,
p_topic_id, p_ver_id, p_filepath.
** handle other standard exceptions
CATCH cx_root INTO lp_root_exception.
CALL METHOD cl_cfx_exception_ui=>handle
EXPORTING
ip_exception = lp_root_exception
ip_navigation = navigation.
ENDTRY.Hi,
Something like this should work:
REPORT zggar_http_client.
PARAMETERS: p_host TYPE char100 DEFAULT 'http://www.google.fr',
p_port TYPE char20.
DATA: wcl_client TYPE REF TO if_http_client.
DATA: w_content TYPE string,
w_host TYPE string,
w_port TYPE string,
w_proxy_host TYPE string,
w_proxy_port TYPE string,
w_path TYPE string.
w_host = p_host.
w_port = p_port.
CALL METHOD cl_http_client=>create
EXPORTING
host = w_host
service = w_port
proxy_host = w_proxy_host
proxy_service = w_proxy_port
IMPORTING
client = wcl_client.
wcl_client->request->set_header_field( name = '~request_uri'
value = w_path ). "#EC *
wcl_client->request->set_header_field( name = '~request_method'
value = 'GET' ). "#EC *
* send and receive
wcl_client->send( ).
wcl_client->receive( ).
* display content
w_content = wcl_client->response->get_cdata( ).
Best regards,
Guillaume
Maybe you are looking for
-
Time Capsule/Time Machine were working fine until about 1-2 years ago when my family started having troubles with the internet provider (AT&T). While on a 2 hr long phone conversation with them trying to fix it, they changed the wireless key code or
-
Display CLOB value in multiple rows in ADF UIX
Hi, I have an ADF UIX application that uses data that are stored in a CLOB column in an Oracle Database. The table data is presented in a simple table in page1.uix, I use BC4J for accessing the Database and Oracle JDeveloper 9.0.5.2. The problem is t
-
Iphoto and epson film factory/potosho[
my earlier IPhoto automatically automatically copies photos to Epson FIlm Factory when I downloaded from my camera, '08 does not do it. I have also been unable to export photos to Photo Shop Elements 2. Any ideas on how I can get either or both of th
-
I'm trying to sign up for the student discount and I am finally eligible for it because I just signed up for all my fall classes and I just cancelled my subscription to do it and now it says I'm not eligible for it. I've used Spotify for two years pa
-
Cannot sync iCal on iMac (10.5.8) with iCloud.
Basically, when I put in iCal events, it doesn't sync up to my iPhone 5. I don't use Gmail, so I thought the easiest way to sync the devices would be through iCloud. I've checked all of my sync options on the iPhone and they're all on. Keep getting