Place/Link to post Sample codes
This is a suggestion regarding OTN:
Apart from the tips/ questions adressed in the FAQ,
it would be nice to include link or some means by which people can post sample codes/tips/workaround.
We can put them at common place.
I see large number of repeated postings on this forum. By doing this, apart from benefiting people, it will also
help in reducing duplicate posting (It will act as a document by itself).
One way would be:
For each products, we can have a common place for workarounds/tips/Sample codes.
People should be able to post the above through this forum.
The posting should be added after moderating it.
Thanx,
Chetan.
Emilio Corsetti wrote:
Ben,
That was the problem. The link is live now and you can see the poorly positioned spry menu in all its glory.
Thanks,
Emilio
http://www.emiliocorsetti.com/publish/two_column.html
You don't say what you want to change.
If I were styling your menu I would have it vertically centered in the grey background. By adding the red coloured rule found in layout.css
#menu (line 61)
background-image: url("../Images/Layout/nav_bg.jpg");
background-repeat: repeat-x;
background-position: left top;
width: 960px;
height: 40px;
padding-top: 10px; // or whatever suits
I would also like to have the menu items spread evenly across the page by applying the style rule found in SpryMenuBarHorizontal.css
ul.MenuBarHorizontal li
margin: 0;
padding: 0;
list-style-type: none;
font-size: 100%;
position: relative;
cursor: pointer;
width: 20%; // 5 items X 20% = 100%
float: left;
You may have to fiddle a bit more after this to get it exactly the way you want. Just start a new topic because this one has already been answered.
Happy Sprying.
Ben
Similar Messages
-
Posting sample code on ESI, JESI, invalidation
If you want to post sample code for ESI or JESI, I strongly
encourage you do that in the Community Code Services part of OTN.
Here's the link: http://otncast.otnxchange.oracle.com/ .
ESI is listed under the XML Technology section on this page. If
you're an Oracle employee, you should follow the instructions for
posting "samplecode". If you're a non-Oracle OTN member, then
please follow instructions for posting "membercode".
We'd really like to get this CCS thing going for ESI, so all your
contributions are welcome.
Cheers!Yes - it is useful
-
Custom data link issues in sample code
Hi all,
I had tried to debug/run the sample of custom data link of Indesign SDK CS2. I found issue in this sample code whenever I create a package of the document which having the custom data link, at this time I got the message dialog box having the message "Cannot copy necessary linked file(s)".
anybody know about this problem that how we can resolve this, Please let me know.Pete, I think this is a known issue- see http://support.adobe.com/devsup/devsup.nsf/docs/54028.htm for some workarounds.
best wishes
Ian -
Sample code to dynamically append bytes to pdf
Hi,
I need to dynamically append bytes to pdf. It would be great if some one post sample code for that.
Thanks,
Veerabhadraraouser10710231 wrote:
i am unable to append the bytes to pdf file . Can you send me some code snippet.It is unnecessary to ask someone to invest time in you when you can easily google for the hundreds or thousands of example snippets already out there. You know what to look for now, now make some effort yourself. Its like asking someone to go buy a tooth brush for you when you know there is one somewhere upstairs, you just refuse to go look for it and make someone else do the work. -
Oracle Sample Code Login Issue
I want to login to Oracle sample code.When i clicked the 'login' link from oracle sample code home page it is redirecting me to a page to 'Create User'. I gave my OTN username and password,but not accepting and showing invalid username/password message. Please help me to solve this.
Hi,
I had this issue, so i created a new user like 'user_ext' by providing a valid email id. Then try to login with the new user id created -
Oracle Text query parser - sample code
I've posted a new entry on my "searchtech" blog which includes code for a "Google-like" query syntax parser:
https://blogs.oracle.com/searchtech/entry/oracle_text_query_parser
Currently it's just sample code, but if it goes down well we might include it, or something similar, in a future release of the product.
I'd very much welcome feedback on it, either here on the forum, or on the blog, or directly to me email address (which is included in the download file).
Thanks, everyone.When I select the "open in browser" option for each now, I get formatted, readable code, which can easily be copied and pasted into a file without the extra txt extension, and I much prefer that. So, for me, that is a sufficient fix.
It seems like this is handy, virtually idiot-proof code, easy to create the package, easy to use it, and provides the Google-like search that users expect, without raising errors or producing unexpected results. Frequently, on the OraFAQ forums, where I am a moderator, when there are various ways to solve a problem and I provide a Text solution, the complaint is that it is too complicated to create all of the formatting to fix potential problems with user input. Your code solves that problem and I hope it will be included in the next version. If you don't mind, I will post an announcement in the OraFAQ Text forum with the permanent link that you provided. -
Hi,
Is there a place on sdn where I can go and look at sample codes and other ABAP stuff...
Tushar.https://www.sdn.sap.com/sdn/developerareas/abap.sdn?node=linkDnode6-3
Check out the link to ABAP articles
Also, from top level navigation, click download, click code sample, click the download icon.
Regards,
Rich Heilman
Message was edited by: Rich Heilman -
Look for JDeveloper Tutorial with samples code
Hello All ,
my name is Ron ,
i'm new user of JDeveloper i'm looking for a place to start a tutorial "How to use
the JDeveloper ? " with samples code .
from very basic use ( Hello world program ) to addvanced programming ( Like GUI Forms and Database )
please show me links where to start learning from
thanks in advanceThe tutorials in the JDeveloper help system are a very good place to start. Choose Help | Help Topics from the JDeveloper menu then click the Tutorials book in the Help navigator. The tutorials are also available on OTN, see:
http://otn.oracle.com:8877/jdeveloper/help/
You may also find the 'how to' documents and samples on OTN helpful:
Oracle9i JDeveloper How To Documents
http://otn.oracle.com/products/jdev/howtos/content.html
Oracle9i JDeveloper Sample Code
http://otn.oracle.com/sample_code/products/jdev/content.html
Hope this helps.
- jon -
ARB PHP Sample Code SOAP Exception
Hello Everybody
I m using ARB PHP Sample Code.
I m using it as it is provided with my login id and transaction key
I m using PHP 5.2 version
I m quite new to SOAP.
Everything seems fine but the script is throwing following exception.
SoapFault exception: [soap:Client] Server was unable to read request.
---> There is an error in XML document (2, 584). ---> Input string was
not in a correct format. in /mysite//php_arb/PHP/
api_authorize_net_soap_v1.php:1869 Stack trace: #0 /mysite//php_arb/
PHP/api_authorize_net_soap_v1.php(1869): SoapClient-
>__soapCall('ARBCreateSubscr...', Array) #1 /mysite//php_arb/PHP/
subscription_create.php(24): AuthorizeNetWS-
>ARBCreateSubscription(Object(ARBCreateSubscription)) #2
May i please have some help on how to resolve this and get the code
working for me?
I m trying to trace out the issue but my efforts are in vain.
I look forward to recieve some help from everybody in this group
Pls reply
Thanking You in advanceHello Devster,
Thank you to post your question on TechNet forum.
After reviewing the whole post, I have a question to you. You can access the report via the link, http://myServer/Reports_DEVPROJECT/Pages/Report.aspx?ItemPath=%2fData+Mgmt%2fSample+Letter.
From the URL, I can see that the report is located at: /Data Mgmt/Sample Letter, instead of /DataMgmt/Sample Letter. In addition, I found that the target report is "/DataMgmt/Sample HAP Letter" instead of "/DataMgmt/Sample Letter" as the error described. I
am not sure whether you post out the correct code segment.
Please check the above things on your side, and hope it is helpful to you.
Regards,
Edward
Edward Zhu
TechNet Community Support -
Sample code for LDAP authentication throwing exception
i got sample code (13kb zip file from
http://java.ittoolbox.com/browse.asp?c=JAVAPeerPublishing&r=%2Fpub%2FBK072703D%2Epdf) having MyCallbackHandler,LdapAuthenticator,SampleLoginModule 2 policy files and config files). i copied and compiled succesfully all java files placing them in bin of j2sdk1.4 . But when i give following command(as told in the pdf article ,url is given above) exception is thrown each time i enter username n password(three trials are allowed by the code)
java -Djava.security.auth.login.config=D:\j2sdk1.4\bin\sample_jaas.config -
Dldap.properties.config=ldap.properties SampleAcn
SampleAcn is also one of the java files i compiled in bin.
i m new to this area . so guide me for following
do i need to do something with the 2 policy files as nothing is told anywhere about there configuration or there configuration is not needed at all.
i havent configured anything on windows 2000 server having active directory except for creating a user named testUser/testPassword as mentioned in code that this is the username/password v can try for succesfull loging thorugh sample.
do i need to cofigure some other things for using LDAPI think I have just answered your questions at the following post:
[http://forums.sun.com/thread.jspa?threadID=5407841&tstart=0].
This should work on any OS that supports Java, including AIX. The following link also can be helpful (includes code sample):
[http://alextch.members.winisp.net/ResetADPasswordFromJava/SetADPasswordFromJava.htm]
Good luck!
Sergei.
[http://hitech.com.ua/en/] -
New Sample Code: Querying techniques, integration events, book assignment
We have just posted a new CRM On Demand Web Services code sample to Oracle Sample Code. This sample uses a combination of WS v1.0 and WS v2.0 to demonstrate advanced samples like querying techniques, processing integration events, and book assignment.
The sample is written using .Net framework 1.1 and VS studio 2003. Users will need to have Microsoft .NET (.Net Framework 1.1) installed on their machine.
<a title="Click here" href="https://codesamples.samplecode.oracle.com/servlets/Scarab/action/ExecuteQuery?query=crm_on_demand" target="_blank">Click here</a> to go to the CRM On Demand code samples. Look for Artifact ID S517, Advanced WS Techniques (in .NET Framework 1.1)I found some examples in the Web Services Resource Library.
you can access this through the "Training and Support" link from within CRM OD.
Then click on "Web Services Library" then download the Getting Started kits
Edited by: user10730659 on 20/01/2009 16:11 -
Howdy All,
I am trying to work through the iTunes U Admin's guide directions on how to upload content using the Web Service API. I have completed everything through step 2, (I believe it is page 48 in the current guide), Request an Upload URL from iTunes U. After I try to POST a file to the URL returned in step 2 the only response I receive back from the server is a 500 error. I am writing my application in C# so using a UNIX curl script to perform the file upload is not possible, and that seems to be the only thing close to sample code that I can find.
Has anybody else written some .NET code that performs the file upload in step 3 that they would be willing to share? Even Java code that I could port over to C# would be a good start. I can also post some of my own code if there is anybody that feels like taking a look at it.
Thanks,
David
Other OSCouple of pointers for you ...
First is that the documentation (last time I looked) has a bug that will prevent you from using the web services API. Here is a link to the changes you need to make:
http://discussions.apple.com/thread.jspa?threadID=899752&tstart=15
Next, when I was working through this stuff, I found learned a ton about HTTP I didn't previously know (like how to construct a valid multipart MIME doc). If it would be helpful, your POSTed doc should look pretty close to this:
Content-Type: multipart/form-data; boundary=0xKhTmLbOuNdArY
--0xKhTmLbOuNdArY"
Content-Disposition: form-data; name="file"; filename="myXMLFile.xml"
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="UTF-8"?>
<ITunesUDocument>
<ShowTree>
<KeyGroup>maximal</KeyGroup>
</ShowTree>
</ITunesUDocument>
--0xKhTmLbOuNdArY--
I would be happy to share my own code, but it might not be what you're after (I used Objective-C and Apple's NSMutableHTTPRequest Cocoa class to do my HTTP POST). I am not a C# guy, but I would bet dollars-to-donuts that C# has some kind of class that serves as a wrapper for an HTTP POST request ... you give it the HTML, it POSTs.
MacBook Pro Mac OS X (10.4.8) I lied. I'm running Leopard -
Thoughts on "PictureSharing" sample code
I stumbled upon this amazing sample code a few days ago and wondered how it worked. Naturally I ran a debug on both the client end and server end of the application, worked great My problem is, that I really enjoyed this idea and rewrote the code for my application. You can possibly understand that I am also trying to build an image sharing application, so this sample code will definitely shorten my time in coding from scratch a connection to a server. Praise Bonjour! lol. What I'm having problems with are the client end and server end. I rewrote the code from Apple with my credentials and a few of my own additions to the code. Basically what I wrote is kinda like the code Apple provides, but uses the same fundamentals (Bonjour, networking, etc.). When I build my application (Which contains both the server end and the client end)I get around 10 errors, saving that some things from the controller.h and controller.m weren't properly connected to their components in interface builder, which I knew that. Why I built the app with knowing that, is because for some reason I can't seem to place bindings to the proper components (NSText, NSButton,etc.) in interface builder through the object I have connected to the code. If anyone is willing to help me, I'll be glad to share the error messages and much more to help fix this problem
Cross posting
http://forum.java.sun.com/thread.jspa?threadID=5209791&tstart=0
db -
How-To/Sample code to tie up class variable to MXML component created in Design view
This is a very noob question but I've been searching through the documentation for the last 2 hours and can't seem to find anything helpful. I have a SWFLoader created in the design view. I have all my app code in an <fx:Script> with all my functions and variable in a CDATA tag. All I want to do is hookup the SWFLoader created in the design view with a private var in my ActionScript.
I also have two separate states for my app, and I want the same SWFLoader to be visible in both states. Can someone point me to some useful sample code or documentation??
Any help is much appreciated.Sun has recommendations for naming conventions. Class names should start with a capital letter. You should avoid using class names that are the same as classes provided in the SDK. Following these conventions will make it easier for people to help you. For example, you should not use file, nor should you use File. It's better to use MyFile, replacing My with something that makes sense to your application (SeniorFile?).
Also, check the Formatting Help link when posting for a desciption on how to use the code tags for posting code.
1. You need to establish references between your classes. One way is to have a constructor that has a JMenuBar argument.
2. You can not add a file to a JMenuBar because a JMenuBar adds a JMenu. I don't think you want file to extend JMenu. It may be better for file to have a JMenu.
I haven't tried to compile this code so no guarantees - just trying to show you an approach.
public class Senior extends JFrame {
public Senior() {
JMenuBar bar = new JMenuBar();
MyFile file = new MyFile(bar);
//whatever else you need
public class MyFile {
public MyFile(JMenuBar mbar) {
JMenu menu = new JMenu();
mbar.add(menu); -
PHP Shoutbox : stop users posting php code
hi guys/girls
can anyone give me an easy way to stop users on my site
posting php code into a shoutbox.
i have a shoutbox made up of a normal html form that posts
their shouts to a mysql database using php.
at the moment the only validation i have in place is the
built in form validation dreamweaver8 has which stops
users posting a blank post. however a user can post php code
if they know how, which could cause problems.
thanks
ted.tedrodgers wrote:
> i dont see how the highlight file function helps me in
this case? please explain alittle more.
That suggestion came from "Pro PHP Security". However,
looking at the
PHP manual, it should be highlight_string(), not
highlight_file().
http://www.php.net/manual/en/function.highlight-string.php
How would it help? highlight_string() converts PHP code to
HTML for
display purposes. Once converted to HTML, it cannot be
executed or do
any harm to your website.
> and what other validation do you suggest?
Without knowing the details of your application, it's hard to
say; but
just checking that the text area isn't blank is no protection
at all.
Attackers could post spam or hot link to pornographic images.
Two simple
measures would be to pass the content to strip_tags() and/or
htmlentities().
http://www.php.net/manual/en/function.strip-tags.php
http://www.php.net/manual/en/function.htmlentities.php
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/
Maybe you are looking for
-
I do not know where to start since I am unable to retrieve any mail and somehow, am half in and half out of Cloud. Don't kow what that is but am not so sure I want this at the moment. I simply wish to retrieve everything I cannot access. In other
-
BPC 10 Sheet Logic - Using SUMIFs
Hi Gurus, This is a question relating to BPC's EPM excel add-in. I'm currently compiling a headcount report based on data entered into an input schedule where the user enters a 1 next to an employee who is employed per month, like so:
-
How to judge the mouse enter which one of buttons?
There two buttons(no text,only icon on them), and how to judge the mouse enter which one of them and show the different message at one textfield?
-
Examine Document... using Acrobat javascript
Hi, I am using Acrobat 9 version. I have a pdf which has some hidden text. I am using Acrobat menu Document -->Examine Document... to find if the PDF has any hidden text or not. If the Examine Document... shows the Hidden text (1 page), then I remo
-
PARTNER_UPDATE modify custom field
Hi all, I need to do some modifications in partner data, the problem is that the badi PARTNER_UPDATE is only triggered if a standard field is changed. The same happens with others badis like BUPA_ADDR_UPDATE. I've added a custom field and I want to