FTP not working through SAP R/3 data transport
Hi,
Environment:
Software: BO Data Services 3.2
DI server OS: AIX
Source data from: SAP (has BODI 11.5.2 programs)
After recently installing BO Data services 3.2 on the AIX box, I am able to run a dataflow with an R/3 component. This component, reads a Z table from SAP and creates a .dat file on SAP in a particular path. The R/3 transport process should copy the file over from SAP to AIX server but it is failing to do. The error is:
(12.2) 08-12-10 14:12:52 (E) (360872:0001) FIL-052008: |Data flow DF_ZSETUP_STG
FTP could not transfer file <../qsawork/ZSetup.dat> from host <161.145.174.13>: <>. Please ensure that the FTP relative path for the SAP server working directory is set correctly such that the data file is accessible to the FTP program. Also, ensure that the target path, where the transferred file is written to, is correct.
I am able to manually follow the ftp process and able to:
1. Login from AIX server to SAP for ftp
2. change directory on SAP to the relative path
3. Get file from SAP to unix in the target folder as set in the configuration setting
While running the job, the file gets created on SAP but fails to FTP. Please advise what we could be missing?
Best regards,
Manjunath Balur
Hi,
I was able to resolve this myself by setting following parameters in DSConfig.txt file on the $LINK_DIR/bin path.
USE_UNIX_FTP_COMMAND=TRUE
USE_UNIX_PASSIVE_FTP=FALSE
Hope this is helpful.
Manjunath Balur
Similar Messages
-
BEx Analyzer not working in SAP GUI 7.10
Dear All,
BEx Analyzer 7.0 is not working on SAP GUI 7.10. Following are the details:
OS: Windows XP SP2
Installed the following softwares (in the sequential order):
1. Microsoft .Net Framework 2.0 SP1
2. MS Office 2003 (without any service packs)
3. SAP GUI 7.10 (used SAPAllSetup.exe) to install both BEx Analyzer 3.5 and BEx Analyzer 7.0 alongwith SAP GUI 7.10.
While BEx Analyzer 3.5 runs fine, 7.0 does not.
Upon running BEx Analyzer 7.0 from the Programs menu, I see a toolbar on the left hand side on MS Excel in German. Whenever I click on any button, they do not respond.
When I tried to install update for Office 2003 (KB907417), I received the message stating the patch has already been applied.
I also applied SAP GUI 7.10 Patch Level 8, but still the problem remains the same.
Running Tcode RRMX from the SAP GUI opens MS Excel with both the toolbars of 3.5 (on top) and 7.0 (on left). As before, 3.5 works fine, while 7.0 does not.
Do I need to install Office SP2 or SP3, as well? Or something else? Any solutions?
Thanks and Regards,
Sachin.Hi All,
This problem is due to .NET 2.0 assembly(nothing but .dll's),
Step1 : Check if you can see this C:\WINNT\assembly\GAC exists
If it does and still getting the error, then follow these steps,
1) Uninstall office03
2) Uninstall GUI
3) Uninstall .Net 2.0
4) Reboot
5) Install .dll(WindowsXP-KB935448-x86-dll.exe) fix(this is due to .net1.1 and 2.0 coexistence)----- only if u get a critical message at startup.
5a) Reboot
5b) Install .net1.1
5c) Reboot
5d) Install .net2.0
5e) Reboot
6) Install office 03
6a) Reboot
7) Install .PIA's (O2003PIA.MSI)
7a) Reboot
8) Install setupall.exe for GUI
9) Install KB907---- (office2003-KB907417-FullFile-ENU.exe)
10) Reboot
Let me know if you encounter any problems.
OR....
Update the Latest Patchs of GUI & Bex.
BI710SP03_300-10004472.EXE
bi710sp04_400-10004472.exe
gui710_6-10002995.exe
Hope it helps you...
@shaik -
IPod touch not working through USB in car
Does anyone know how to resolve an issue with the new IPod Touch 4th gen just purchased not working through car stereo. Have a new Toyota camry touring. You can hear sound when connected when you slide to unlock or go into an app the sound goes through the speakers fine but the radio face says loading and won't go any further, if you then try to go to the music screen it says connected so you can't get into the music to try to play. Has anyone else had this problem and resolved it. Not sure if the software of the radio can be upgraded to suit maybe at service?? Not really sure. Any help would be great
Have you contacted your auto dealer? Some users have reported problems with there car systems not worked with the latest iOS. I searched the iPod Touch forum for Toyota but did not find any previous posts concerning Toyota.
Have you tried resetting your iPod:
Press and hold the On/Off Sleep/Wake button and the Home
button at the same time for at least ten seconds, until the Apple logo appears. -
Printing on HP PSC 1200 not working through WIN XP
Hi! I have a windows PC which I have connected to an HP PSC 1200 printer. My other laptops can connect perfectly to the printer and print. I set up my Mac according to the instructions but I cannot print. In windows the que name is "Remote Downlevel Print" and it is immediately giving an error. I called apple care because my exact model wasn't there so they gave me a printer which used its same driver. I can print when I connect the printer to my USB on my MacBook Pro but it does not work through Windows. If anyone could provide me with some help that would be great. Thanks.
I have a similar problem-Canon Pixma ip4000 wired to Dell desktop running Win 98 2nd ed.---- Desktop is wired to Netgear. --- I can access internet with mac book pro but not print-I could print wirelessly with Toshiba laptop running Win xp-called apple help and spent 2 hours trying to fix but we both gave up-I wonder if I could run a cable from the printer to the netgear---unfortunately no USB interface on the netgear router --so I would have to find a cable that is either USB or parallel on one side and eithernet on the other-does anyone know if this world work? If not I could buy a printer router that just takes care of the printer wirelessly-anyone know of a good one?
-
Router will not work through splitter
I have a new router from Verizon as the wireless signal kept dropping on my old one. I've always had my stb and router connected through a splitter and it's worked fine. The new router they have sent me which is the latest actiontec router with two antennas and gig E routing capability will not work through a splitter but will work without the splitter. I've purchased a better splitter that will carry up to a 2.4ghz signal but it still doesn't work. Verizon tech refuse to send out an engineer to help me so I'd like to ask if anyone here can shed some light on my issue. I do have two other splitters in the chain due to having two additional stb's in other rooms. I've also tried the router split with one of my other stb's with no luck.
Unfortunately, you may have simply been lucky previously.
I assume you aren't trying to play protected content through the projector, that will never work.
Assuming you aren't, you might try cycling through the resolutions. -
SAP PI FTP sender adapter not working with SAP ECC over Itanium
Hi,
We have been running normally SAP PI 7.0 SP14 with no issue for a while.
We are now in the process of migrate the SAP ECC system from PA risc to IA platform. We are performing some tests between SAP PI and SAP ECC to check that the platform migration is not affecting us in any way and we have found that FTP adapter sender is not working anymore (receiver is working as usual).
We place some files in the new ECC system and when PI goes to retreive the files it is like it can not read anything. It gives no error but it does not pick any file. This is not happening with the old platform.
Does anyone have any idea?
Thanks a lot for your help
DianaHi,
I am using FTP connection and for the receiver it is working fine.
Thanks
Diana -
Put File of a large file through FTP not working correctly
I put a lot of large files to my web server through Dreamweaver, and when I get files larger than about 45 meg, the file is put fine to the server. But then Dreamweaver waits for a server responce to make sure it got the file. and after about 30 seconds or so, it says server timed out, and it starts over with the FTP, and the first thing it does on the start over is to delete the file.
The only wai I have been able to put my large files to the server, is to sit and wait for it to finish, and then cancel the check for if the file is there or not.
I have my FVT server timeout set to 300 seconds, but that does not help eihter. it still times out after about 30 seconds.
Is there a fix for this so I don't have to sit and watch my files being transfered to the server?I changed it to passive PTF, but that did not help, sending a 90 Meg file did the same thing. What the problem is, is that the Dreamweaver FTP wants to verify that the file got there. and when you send that large of a file, the server wants to make sure it is a clean file, so it takes a while to put it to the correct location. And while the server is doing this, Dreamweaver says that there is no responce from the server, and causes a reconnect. and on the reconnect it starts over, and the first thing it does is to make sure the file is deleted. What it should do it verify that the file is there and the same date as the one you sent up there. That would eliminate this problem. I was hoping there was a setting in Dreamweaver that I could tell the FTP not to verify the send.
Are there any Dreamweaver developers that visit this forum. that could tell me how to bypas the verify on put. It seams silly to have a tool that costs this much that can not do a task that a free pice of software can do. -
Row Level Security not working for SAP R/3
Hi Guys
We have an environment where the details are as mentioned below:
1. Crystal Reports are created using Open SQL driver to extract data from SAP R/3 using the SAP Integration Kit.
2. The SAP roles are imported in Business Objects CMC.
3. Crystal Reports are published on the Enterprise as well.
3. Authorization objects are created in SAP R/3 and added as required for the row level security as mentioned in the SAP Installation guide as well. The aim is when the user logs into the Infoview and refreshes the report he should only see data that he is meant to so through the authorization objects.The data security works very much fine when the reports are designed directly on the table but when the reports are built on the Business View it doesnt work hence the user is able to see all data.
Any help in this issue is greatly appreciated.
Thanks and Regards
KamalHi,
In order for row level security to work for you using the OpenSql driver, you need to configure the Security Definition Editor on your SAP server. This is a server side tool which the Integration solution for SAP offers as a transport.
This tool defined which tables are to be restricted based on authorizations.
However since you are seeing the issue on reports based on Business Views, you need to identify whether the Business View is configured in such a way where the user refreshing the report is based on the user logging into Infoview. If the connection to your SAP server is always established with the same user when BV is used then you security definition is pointless.
You can confirm this by tracing your SAP server to identify what user is being used to logon to SAP to refresh the reports.
thanks
Mike -
Proxy was not working in sap r/3
Hi All,
I have a scenario from jdbc to SAP.I have made serverproxy.The proxy was not working.I have test the proxy backend it is working fine,but i am staring jdbc channel the data was not insert in to the database table in sap.I have checked in sxmb_moni in sap r/3 system is showing scuessfully,but data was not sent to proxy.I have put one break point in the code for debugging the proxy.But data was not comming to breakpoint.Kindly help me.
Thanks
RaviHi ,
Please try with this link.
http://ecohub.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0dec9f5-e9a0-2b10-c1a8-e355d01af932&overridelayout=true -
IF-condition not working in sap script??????
hi,
i am trying to chk one condition in sap script using if statement....but it is not working at all.
statement i am writing is :-
/: IF &IST_ITEM-SAD_PRINT& <> 0
p7 ,,,,,,,,,,,,,,,,SAD,, 4.00 &IST_ITEM-SAD_PRINT&
/: ENDIF
value for IST_ITEM-SAD_PRINT is coming as it is shown while debuging .
eventhen control is going inside if statement independent from the value of IST_ITEM-SAD_PRINT
how to use if statement properly....
regards
DeepakHi,
Declare a dummy variable of type IST_ITEM-SAD_PRINT and then use that variable in sapscript..
Ex..
<b>Print program</b>
DATA: V_DUMMY LIKE IST_ITEM-SAD_PRINT.
<b>Sap script</b>
/: IF &IST_ITEM-SAD_PRINT& <> <b>&V_DUMMY&</b>
p7 ,,,,,,,,,,,,,,,,SAD,, 4.00 &IST_ITEM-SAD_PRINT&
/: ENDIF
Thanks,
Naren -
Collective invoice not working through VF04
Dear All,
Good Day!!!
Please share your suggestions on the below issue,
Our user has created two sales orders with reference to a contract and created two deliveries. All partners and other header data and item data is same except goods issue date. If we try to creative collective invoice through VF04, it is not creating a single invoice, it is creating two invoices. If we try to create through VF01 it is creating collective invoice (Single invoice).
Invoices will be creating through the batch job and it will create through VF04. Hence this splitting is a big problem for us.
System has to create the collective invoice through VF04, even though the goods issue date is different (Which is working through VF01).
We have checked the copy controls, but there are no restrictions for the T Codes (VF01 and VF04).
Please suggest is there any way to create the collective invoice through VF04 even though the goods issue date is different. It should work as like VF01?.
Thanks in advance.It is a standard that if the Actual GI date in deliveries are different, you will get invoice split. In ECC6, if you execute VF04, you can see a tab "Default Data" which cannot be seen in 4.6. Select this tab and maintain the billing date which you want and execute so that you will get one invoice against two deliveries.
G. Lakshmipathi -
FTP not working behind firewall
I've currently got a Cisco 891 running with a FTP server behind it. All FTP clients running inside the network can use the FTP by going directly to the internal IP of 192.168.12.6. However all outside clients are getting a connection to the server but then dropping. I've got NAT configured to go from external IP on port 990 to internal IP address 192.168.12.6 on port 990. The FTP is listening on port 990. The clients can only run in passive mode.
Below is the version information and current running config.... Any help would be greatly appreciated.... Ignore the NAT going to internal IP 192.168.12.50, it's for another operation.
Cisco IOS Software, C890 Software (C890-UNIVERSALK9-M), Version 15.0(1)M6, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Wed 01-Jun-11 21:24 by prod_rel_team
ROM: System Bootstrap, Version 12.4(22r)YB3, RELEASE SOFTWARE (fc1)
yourname uptime is 6 minutes
System returned to ROM by reload at 11:04:09 PCTime Tue May 22 2012
System restarted at 11:04:35 PCTime Tue May 22 2012
System image file is "flash:c890-universalk9-mz.150-1.M6.bin"
Last reload type: Normal Reload
Last reload reason: Reload Command
Building configuration...
Current configuration : 11614 bytes
! Last configuration change at 11:09:50 PCTime Tue May 22 2012 by XXXXXXXX
version 15.0
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service udp-small-servers
service tcp-small-servers
service sequence-numbers
hostname yourname
boot-start-marker
boot-end-marker
security authentication failure rate 3 log
security passwords min-length 6
logging buffered 51200
logging console critical
enable secret 5
ip finger
ip tcp synwait-time 10
ip ssh time-out 60
ip ssh authentication-retries 2
class-map type inspect match-any ccp-cls-protocol-p2p
match protocol edonkey signature
match protocol gnutella signature
match protocol kazaa2 signature
match protocol fasttrack signature
match protocol bittorrent signature
class-map type inspect match-all sdm-nat-user-protocol--1-1
match access-group 102
match protocol user-protocol--1
class-map type inspect match-any ccp-skinny-inspect
match protocol skinny
class-map type inspect match-any ccp-cls-insp-traffic
match protocol cuseeme
match protocol dns
match protocol ftp
match protocol https
match protocol icmp
match protocol imap
match protocol pop3
match protocol netshow
match protocol shell
match protocol realmedia
match protocol rtsp
match protocol smtp
match protocol sql-net
match protocol streamworks
match protocol tftp
match protocol vdolive
match protocol tcp
match protocol udp
class-map type inspect match-all ccp-insp-traffic
match class-map ccp-cls-insp-traffic
class-map type inspect match-any ccp-h323nxg-inspect
match protocol h323-nxg
class-map type inspect match-any ccp-cls-icmp-access
match protocol icmp
match protocol tcp
match protocol udp
class-map type inspect match-any ccp-cls-protocol-im
match protocol ymsgr yahoo-servers
match protocol msnmsgr msn-servers
match protocol aol aol-servers
class-map type inspect match-any ccp-h225ras-inspect
match protocol h225ras
class-map type inspect match-any ccp-h323annexe-inspect
match protocol h323-annexe
class-map type inspect match-any ccp-h323-inspect
match protocol h323
class-map type inspect match-all ccp-invalid-src
match access-group 100
class-map type inspect match-all ccp-icmp-access
match class-map ccp-cls-icmp-access
class-map type inspect match-any ccp-sip-inspect
match protocol sip
class-map type inspect match-all ccp-protocol-http
match protocol http
class-map type inspect match-all sdm-nat-ftp-1
match access-group 101
match protocol ftps
policy-map type inspect ccp-permit-icmpreply
class type inspect ccp-icmp-access
inspect
class class-default
pass
policy-map type inspect sdm-pol-NATOutsideToInside-1
class type inspect sdm-nat-ftp-1
inspect
class type inspect sdm-nat-user-protocol--1-1
inspect
class class-default
drop
policy-map type inspect ccp-inspect
class type inspect ccp-invalid-src
drop log
class type inspect ccp-protocol-http
inspect
class type inspect ccp-insp-traffic
inspect
class type inspect ccp-sip-inspect
inspect
class type inspect ccp-h323-inspect
inspect
class type inspect ccp-h323annexe-inspect
inspect
class type inspect ccp-h225ras-inspect
inspect
class type inspect ccp-h323nxg-inspect
inspect
class type inspect ccp-skinny-inspect
inspect
class class-default
drop
policy-map type inspect ccp-permit
class class-default
drop
zone security out-zone
zone security in-zone
zone-pair security ccp-zp-out-self source out-zone destination self
service-policy type inspect ccp-permit
zone-pair security ccp-zp-in-out source in-zone destination out-zone
service-policy type inspect ccp-inspect
zone-pair security ccp-zp-self-out source self destination out-zone
service-policy type inspect ccp-permit-icmpreply
zone-pair security sdm-zp-NATOutsideToInside-1 source out-zone destination in-zone
service-policy type inspect sdm-pol-NATOutsideToInside-1
interface FastEthernet0
interface FastEthernet1
interface FastEthernet2
interface FastEthernet3
interface FastEthernet4
interface FastEthernet5
interface FastEthernet6
interface FastEthernet7
interface FastEthernet8
description $ES_WAN$$ETH-WAN$$FW_OUTSIDE$
ip address X.X.X.X 255.255.255.240
ip mask-reply
ip directed-broadcast
ip flow ingress
ip nat outside
ip virtual-reassembly
zone-member security out-zone
duplex auto
speed auto
interface GigabitEthernet0
no ip address
ip mask-reply
ip directed-broadcast
ip flow ingress
shutdown
duplex auto
speed auto
interface wlan-ap0
description Service module interface to manage the embedded AP
ip unnumbered Vlan1
ip mask-reply
ip directed-broadcast
ip flow ingress
arp timeout 0
interface Wlan-GigabitEthernet0
description Internal switch interface connecting to the embedded AP
interface Vlan1
description $ETH-SW-LAUNCH$$INTF-INFO-FE 1$$ES_LAN$$FW_INSIDE$
ip address 192.168.12.1 255.255.255.0
ip mask-reply
ip directed-broadcast
ip flow ingress
ip nat inside
ip virtual-reassembly
zone-member security in-zone
ip tcp adjust-mss 1452
interface Async1
no ip address
ip mask-reply
ip directed-broadcast
encapsulation slip
ip forward-protocol nd
ip http server
ip http authentication local
ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
ip dns server
ip nat inside source list 1 interface FastEthernet8 overload
ip nat inside source static tcp 192.168.12.50 2080 interface FastEthernet8 2080
ip nat inside source static tcp 192.168.12.6 990 interface FastEthernet8 990
ip route 0.0.0.0 0.0.0.0 209.60.166.193
logging trap debugging
access-list 1 remark INSIDE_IF=Vlan1
access-list 1 remark CCP_ACL Category=2
access-list 1 permit 192.168.12.0 0.0.0.255
access-list 100 remark CCP_ACL Category=128
access-list 100 permit ip host 255.255.255.255 any
access-list 100 permit ip 127.0.0.0 0.255.255.255 any
access-list 100 permit ip 192.168.1.0 0.0.0.255 any
access-list 100 permit ip X.X.X.X 0.0.0.15 any
access-list 101 remark CCP_ACL Category=0
access-list 101 permit ip any host 192.168.12.6
access-list 102 remark CCP_ACL Category=0
access-list 102 permit ip any host 192.168.12.50
no cdp runHi,
Sample program for FTP
REPORT ZFTPSAP LINE-SIZE 132.
DATA: BEGIN OF MTAB_DATA OCCURS 0,
LINE(132) TYPE C,
END OF MTAB_DATA.
DATA: MC_PASSWORD(20) TYPE C,
MI_KEY TYPE I VALUE 26101957,
MI_PWD_LEN TYPE I,
MI_HANDLE TYPE I.
START-OF-SELECTION.
*-- Your SAP-UNIX FTP password (case sensitive)
MC_PASSWORD = 'password'.
DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.
*-- FTP_CONNECT requires an encrypted password to work
CALL 'AB_RFC_X_SCRAMBLE_STRING'
ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
ID 'DSTLEN' FIELD MI_PWD_LEN.
<b>CALL FUNCTION 'FTP_CONNECT'</b>
EXPORTING
*-- Your SAP-UNIX FTP user name (case sensitive)
USER = 'userid'
PASSWORD = MC_PASSWORD
*-- Your SAP-UNIX server host name (case sensitive)
HOST = 'unix-host'
RFC_DESTINATION = 'SAPFTP'
IMPORTING
HANDLE = MI_HANDLE
EXCEPTIONS
NOT_CONNECTED = 1
OTHERS = 2.
CHECK SY-SUBRC = 0.
<b>CALL FUNCTION 'FTP_COMMAND'</b>
EXPORTING
HANDLE = MI_HANDLE
COMMAND = 'dir'
TABLES
DATA = MTAB_DATA
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4.
IF SY-SUBRC = 0.
LOOP AT MTAB_DATA.
WRITE: / MTAB_DATA.
ENDLOOP.
ELSE.
* do some error checking.
WRITE: / 'Error in FTP Command'.
ENDIF.
<b>CALL FUNCTION 'FTP_DISCONNECT'</b>
EXPORTING
HANDLE = MI_HANDLE
EXCEPTIONS
OTHERS = 1.
Thanks
Sudheer -
Substitution rule does not work in SAP CRM
Hi,
In our client, we have work flow set up for substitutions. Manager A has specified B as his substitute for approving work flow items during his absence. I checked the table T77S0, WFLOW AUTOF is set to 'X'. I checked the table HRUS_D2, here the entry shows as
User User Start date End date Substitute profile Substitute Active
A B 03/10/2014 01/01/9999 0001 X
However B is not able to receive the workflow items of A. When I tried to forward using SWIA, then B is getting workflow items. Not sure, why the substitution is not working. User A has set up workflow substitute in SAP CRM Web UI.
Any suggestions to resolve this will be greatly appreciated.
Thanks.
With regards,
RaviYou assigned substitution profile 0001 which is disciplinary or something like that - this substitution profile has no meaning and is only an example. try not assigning a substitution profile or use profile 'all' which contains the 'NO_CLASS' task class which is the default classification for tasks in the system.
you can see substitution definition in SAP Web Application Server → Business Management → SAP Business Workflow → Basic Settings (Organization Management) → Substitute Profile.
see also: Maintaining and Activating Substitutes (SAP Library - SAP Business Workflow) -
Function Module not working through VC
Hi Experts
I am facing one strange issue while working on VC model with function module as data service.
This FM is to writes data to bcak end BI master data table which is working fine through BI. When i pass the values through VC, New values are not reflecting in BI table. I tried passing values through form / table but still its not working. Also we have system generated message which show success / failure of FM & the changed values as output after execution of FM. Which i am getting success message every time i pass values.
Currently i am working on VC 7.01 & SP6 with Flash compiler.
Please guide me if you have face this issue.
Thanks
SandeepHi Sandeep,
Try to put a breakpoint in your FM and check whether you are sending correct values and the values saving or not.
Thanks,
Pradeep -
Javascript not parsing through in an HTML data set (table)
I have a spry dataset (html table) working perfectly on my site. I have an 'info' column with some HTML, an image, and youtube embed. All of these parse correctly and show on the page, but for some reason my google adsense (javascript code) is not parsing through at all. I'm using Spry 1.6.1.
Here is my code:
<script type="text/javascript">
<!--
var PrankDialerLibrary = new Spry.Data.HTMLDataSet("SpryAssets/library.html", "pdLibrary", {sortOnLoad: "hits", sortOrderOnLoad: "descending"});
pdLibrary.setColumnType("preview", "html");
pdLibrary.setColumnType("info", "html");
pdLibrary.setColumnType("filename", "html");
//-->
</script> ... <div class="MasterDetail">
<div spry:region="PrankDialerLibrary" class="MasterContainer">
<div class="MasterColumn" spry:repeat="pdLibrary" spry:setrow="pdLibrary" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected" align="left">{preview} {name}</div>
</div>
<div spry:detailregion="pdLibrary" class="DetailContainer">
<div class="DetailColumn">{info}</div>
<div class="DetailColumn">{filename}</div>
</div>
<br style="clear:both" />
</div>
Thanks!Treytor72 wrote:
Thanks again for your expertise, as I can see you've helped quite a bit around here!
I've tried adding that quick and dirty workaround to the page ( http://www.prankdialer.com/beta/popular.php ), but it seems to have no affect. I may not be fully understanding it, but I don't believe your other options will work in this particular situation because the google adsense code (what is being omitted in my case)
is placed exactly where the ad should appear. I want it to show up right underneath the youtube embed for each item in the data table. Thus, it doesn't belong in the <head> of the page.
Thank you again for your time, and let me know if by any chance you would have any use for my site, PrankDialer.com. I'd be more than happy to give you credits for your help!
Hello,
If I inspect the generated DOM of the page, I do see that the script have been correctly injected in to your page. So we have succeeded so far. You have placed it at a correct position. We could still try the modified setInnerHTML function. I searched the forum and found a improved version of it. (Less work for me )
Spry.Utils.setInnerHTML = function(ele, str, preventScripts)
if (!ele)
return;
ele = Spry.$(ele);
var scriptExpr = "<script[^>]*>(.|\s|\n|\r)*?</script>";
ele.innerHTML = str.replace(new RegExp(scriptExpr, "img"), "");
if (preventScripts)
return;
//bodyMatches is used to store the script tags that have body. For example, <script type='text/javascript'> some JS </script>
var bodyMatches = str.match(new RegExp(scriptExpr, "img"));
if (bodyMatches)
var numMatches = bodyMatches.length;
for (var i = 0; i < numMatches; i++)
var s = bodyMatches[ i ].replace(/<script[^>]*>[\s\r\n]*(<\!--)?|(-->)?[\s\r\n]*<\/script>/img, "");
//make sure that we are not create a script tag if there is no body to it.
if(s.length > 0)
//alert(s);
var scriptEle= document.createElement("script");
scriptEle.text = s;
ele.appendChild(scriptEle);
//now we begin taking care of the script includes (those that have a src attribute defined)
var srcScript = "<script[^>].*src.*>(.|\s|\n|\r)*?</script>";
var srcMatches = str.match(new RegExp(srcScript, "img"));
if(srcMatches)
var numMatches2 = srcMatches.length;
var srcAttrib = "[\s]*src=[\'\"](.*\.js)[\'\"]";
for(var j=0; j<numMatches2; j++)
// when the below statement executes, m should have the src attrib and value:
// src='sompath.js' as a string.
var m = srcMatches[j].match(new RegExp(srcAttrib, "img")).toString();
//now we strip out the src= part. this will leave us with just the path along with the double quotes.
var n = m.replace(/^[(?=src=)]*/img, "");
if(n.length > 0)
var scriptEle2 = document.createElement("script");
//get rid of the quotes as well.
//This is done to take care of single quotes too so that it will work if they defined either:
// <script src='somefile.js' type="text/javascript></script>
// <script src="somefile.js" type="text/javascript></script>
scriptEle2.src=n.replace(/[\"\']/img, "");
scriptEle2.type="text/javascript";
ele.appendChild(scriptEle2);
But!
There's always a but, even if it would work. You might face a even bigger issue. The Google script uses document.write. This method should only be used once the main page is still loading. If you execute this function while the page is done with loading. It will replace the whole content of your page with what is beeing writen.
For example if it does:
document.write('Hello');
Your whole place would be replaced and only showing the word "Hello".
A solution to this would be to use a iframe to display the ads.
Maybe you are looking for
-
Lately Firefox does not load on my Vista--especially since update 18 happened. It shows that Firefox is running in the task manager but the page doesn't come up. This is every time I try to start the browser. It runs once I can get it to come up--but
-
Lenovo Miix 2 10: Sleep and shut down causes restart
I fairly recently ran into a problem with the Miix 2 10. It works perfectly fine otherwise, apart from two issues: 1. I can't put the computer to sleep. Hitting the power button, or selecting sleep from the power menu, or waiting long enough for slee
-
Is there a way to upgrade your ipod or trade it for credit towards a new 1?
I have the 80 gb video, but i want to upgrade to the ipod classic or maybe the 32gb touch, but I dont want to spend the full price and be stuck with my old ipod. Is There any way to trade it for credit towards a new one? or maybe send in the old one
-
Customer Master,for a Vendor, takes wrong Ship-to in Return Delivery
Hi Everyone, Process: Return to vendor based on the standard PO (type NB) with return delivery (type RL). Settings Made: A customer master with account group Sold-to created and the code maintained in vendor master and vice versa. In this customer ma
-
Links in Demo manual do not work
I have completed the quick start guide on our system. I am trying to use the links in the Demo manual, but when I click the links, nothing happens, and ideas please